change services for traefik support

This commit is contained in:
Pim Kunis 2023-01-02 17:18:29 +01:00
parent 0b60fba148
commit f175f716a5
4 changed files with 57 additions and 33 deletions

View file

@ -1,8 +1,8 @@
version: "3"
networks:
gitea:
external: false
traefik:
external: true
services:
server:
@ -13,12 +13,15 @@ services:
- USER_GID=1000
restart: always
networks:
- gitea
- traefik
volumes:
- /data/gitea:/data
- /apps/gitea/conf:/data/gitea/conf
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3003:3000"
# - "22:22" # Look into this some more later. Obviously needed for git.
labels:
- traefik.http.routers.gitea.entrypoints=websecure
- traefik.http.routers.gitea.rule=Host(`git.pizzapim.nl`)
- traefik.http.routers.gitea.tls=true
- traefik.http.routers.gitea.tls.certresolver=pizzapim
- traefik.http.services.gitea.loadbalancer.server.port=3000