Initial commit
This commit is contained in:
commit
d85c9f88f8
26
docker-compose.yaml
Normal file
26
docker-compose.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
version: "2"
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1001
|
||||
- USER_GID=1001
|
||||
restart: always
|
||||
networks:
|
||||
- web
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /home/git/.ssh:/data/git/.ssh
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||
- "traefik.http.routers.gitea.rule=Host(`git.${PUBLIC_DOMAIN}`) || Host(`git.${PRIVATE_DOMAIN}`)"
|
||||
- "traefik.http.routers.gitea.middlewares=redir@file"
|
||||
- "traefik.http.routers.gitea.tls.certResolver=le"
|
Loading…
x
Reference in New Issue
Block a user