enable https for forgejo

This commit is contained in:
Pim Kunis 2023-05-02 14:46:04 +02:00
parent 2db2f5172f
commit 5e5e16bafd

View file

@ -30,10 +30,12 @@ services:
constraints:
- "node.labels.forgejo == true"
labels:
- traefik.port=80
- traefik.port=443
- traefik.enable=true
- traefik.http.routers.forgejo.entrypoints=web
- traefik.http.routers.forgejo.entrypoints=websecure
- traefik.http.routers.forgejo.rule=Host(`{{ git_domain }}`)
- traefik.http.routers.forgejo.tls=true
- traefik.http.routers.forgejo.tls.certresolver=letsencrypt
- traefik.http.routers.forgejo.service=forgejo
- traefik.http.services.forgejo.loadbalancer.server.port=3000
- traefik.docker.network=traefik