Skip to content

Commit

Permalink
Better handling of the Traefik port settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel committed Mar 25, 2024
1 parent fb7fb7d commit 8a26139
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker-compose-traefik.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: "3.7"

x-environment: &py-environment
TRAEFIK_ADMIN_PORT: ${TRAEFIK_ADMIN_PORT:-"8080"}
TRAEFIK_PORT: ${TRAEFIK_PORT:-"80"}

include:
- path:
- docker-compose.yml
Expand All @@ -11,8 +15,8 @@ services:
command: --providers.docker --api.insecure=true
env_file: .env
ports:
- "$TRAEFIK_PORT:80"
- "$TRAEFIK_ADMIN_PORT:8080"
- "${TRAEFIK_PORT}:80"
- "${TRAEFIK_ADMIN_PORT}:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock

Expand Down

0 comments on commit 8a26139

Please sign in to comment.