Skip to content

Commit

Permalink
feat(traefik): enable traefik web user interface
Browse files Browse the repository at this point in the history
Allow to enable access to the web user interface for Traefik.
CAUTION: set the env variable TRAEFIK_UI_PORT to a valid, not yet used, port.
  • Loading branch information
VincentCauchois committed Apr 24, 2024
1 parent 8e5cc6d commit b5eb241
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ services:
- "--certificatesResolvers.acme-resolver.acme.email=${ACME_EMAIL}"
- "--certificatesResolvers.acme-resolver.acme.storage=/etc/traefik/certs/acme.json"
- "--certificatesResolvers.acme-resolver.acme.tlsChallenge=true"
# Enables the web UI and tells Traefik to listen to docker
- "--api.insecure=true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/traefik:/etc/traefik/dynamic
- ./data/traefik/certs:/etc/traefik/certs
ports:
- ${HTTP_PORT:-80}:80
- ${HTTPS_PORT:-443}:443
# The Web UI (enabled by --api.insecure=true)
- "127.0.0.1:${TRAEFIK_UI_PORT:-8080}:8080"

redis:
image: ${REDIS_IMAGE:-redis:7-alpine}
Expand Down

0 comments on commit b5eb241

Please sign in to comment.