Updated Development container to use Traefik labels

This commit is contained in:
2022-11-03 16:23:23 +00:00
parent bd79b17c7f
commit 566dd8c965
3 changed files with 26 additions and 6 deletions

View File

@ -29,6 +29,16 @@ services:
- SSH_PORT=222
- SSH_LISTEN_PORT=22
- DB_TYPE=sqlite3
labels:
## Expose Gitea Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.gitea.rule=Host(`git.luke-else.co.uk`) || Host(`www.git.luke-else.co.uk`)"
- "traefik.http.routers.gitea.entrypoints=http"
- "traefik.http.routers.gitea.middlewares=redirect@file"
- "traefik.http.routers.gitea-secured.rule=Host(`git.luke-else.co.uk`) || Host(`www.git.luke-else.co.uk`)"
- "traefik.http.routers.gitea-secured.entrypoints=https"
- "traefik.http.routers.gitea-secured.tls.certresolver=mytlschallenge"
restart: unless-stopped
networks: