Cleanup. Add domain.

This commit is contained in:
Thomas Lovén 2021-08-21 23:17:07 +02:00
parent c6eca09d49
commit 8b4983f3fa
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/gitea/

View File

@ -3,6 +3,7 @@ version: "2"
networks: networks:
web: web:
external: true external: true
services: services:
server: server:
image: gitea/gitea:latest image: gitea/gitea:latest
@ -12,7 +13,7 @@ services:
- USER_GID=1001 - USER_GID=1001
restart: always restart: always
networks: networks:
- web web:
volumes: volumes:
- ./gitea:/data - ./gitea:/data
- /home/git/.ssh:/data/git/.ssh - /home/git/.ssh:/data/git/.ssh
@ -21,6 +22,6 @@ services:
labels: labels:
traefik.enable: true traefik.enable: true
traefik.http.services.gitea.loadbalancer.server.port: 3000 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.rule: Host(`git.thomasloven.com`) || Host(`git.${PUBLIC_DOMAIN}`) || Host(`git.${PRIVATE_DOMAIN}`)
traefik.http.routers.gitea.middlewares: redir@file traefik.http.routers.gitea.middlewares: redir@file
traefik.http.routers.gitea.tls.certResolver: le traefik.http.routers.gitea.tls.certResolver: le