Updated Development container to use Traefik labels

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

View File

@ -15,13 +15,13 @@ services:
labels: labels:
## Expose Bitwarden Through Trefik ## ## Expose Bitwarden Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.containername.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)" - "traefik.http.routers.bitwarden.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.containername.entrypoints=http" - "traefik.http.routers.bitwarden.entrypoints=http"
- "traefik.http.routers.containername.middlewares=redirect@file" - "traefik.http.routers.bitwarden.middlewares=redirect@file"
- "traefik.http.routers.containername-secured.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)" - "traefik.http.routers.bitwarden-secured.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.containername-secured.entrypoints=https" - "traefik.http.routers.bitwarden-secured.entrypoints=https"
- "traefik.http.routers.containername-secured.tls.certresolver=mytlschallenge" - "traefik.http.routers.bitwarden-secured.tls.certresolver=mytlschallenge"
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@ -29,6 +29,16 @@ services:
- SSH_PORT=222 - SSH_PORT=222
- SSH_LISTEN_PORT=22 - SSH_LISTEN_PORT=22
- DB_TYPE=sqlite3 - 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 restart: unless-stopped
networks: networks:

View File

@ -22,6 +22,16 @@ services:
X_PROXY_NAME: jira.luke-else.co.uk X_PROXY_NAME: jira.luke-else.co.uk
X_PROXY_PORT: 443 X_PROXY_PORT: 443
X_PROXY_SCHEME: https X_PROXY_SCHEME: https
labels:
## Expose Jira Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.jira.rule=Host(`jira.luke-else.co.uk`) || Host(`www.jira.luke-else.co.uk`)"
- "traefik.http.routers.jira.entrypoints=http"
- "traefik.http.routers.jira.middlewares=redirect@file"
- "traefik.http.routers.jira-secured.rule=Host(`jira.luke-else.co.uk`) || Host(`www.jira.luke-else.co.uk`)"
- "traefik.http.routers.jira-secured.entrypoints=https"
- "traefik.http.routers.jira-secured.tls.certresolver=mytlschallenge"
restart: unless-stopped restart: unless-stopped
#Postgres database #Postgres database