Skip to content

Commit

Permalink
config traefik via CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothée Rebours committed Oct 6, 2019
1 parent e393760 commit 2452dd7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 32 deletions.
1 change: 1 addition & 0 deletions ghost/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
- "traefik.http.routers.ghost-tls.rule=Host(`blog.${DOMAIN}`)"
- "traefik.http.routers.ghost-tls.entrypoints=web-secure"
- "traefik.http.routers.ghost-tls.tls=true"
- "traefik.http.routers.whoami.tls.certresolver=tls-resolver"

networks:
- web
Expand Down
23 changes: 20 additions & 3 deletions traefik/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,28 @@ services:
ports:
- 80:80
- 443:443
- 8080:8080
command:
#- "--log.level=DEBUG"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.file=true"
- "--providers.file.directory=/dynamic-configuration/"
- "--providers.file.watch=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.web-secure.address=:443"
- "--log==true"
- "--log.filepath=/logs/traefik.log"
- "--log.level=DEBUG"
- "--accesslog=true"
- "--accesslog.filepath=/logs/access.log"
- "--certificatesresolvers.tlschallenge.acme.tlschallenge=true"
#- "--certificatesresolvers.mytlschallenge.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.tlschallenge.acme.email=${ACME_EMAIL}"
- "--certificatesresolvers.tlschallenge.acme.storage=/acme.json"

volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "${VOLUMES_DIRECTORY:-/docker}/traefik/traefik.toml:/traefik.toml"
- "${VOLUMES_DIRECTORY:-/docker}/traefik/dynamic-configuration/:/dynamic-configuration/"
- "${TRAEFIK_CONFIG}/dynamic-configuration/:/dynamic-configuration/"
- "${VOLUMES_DIRECTORY:-/docker}/traefik/acme.json:/acme.json"
- "${VOLUMES_DIRECTORY:-/docker}/logs/traefik/:/logs/"
container_name: traefik
Expand Down
29 changes: 0 additions & 29 deletions traefik/sample-config/traefik.toml

This file was deleted.

0 comments on commit 2452dd7

Please sign in to comment.