Created
May 11, 2018 14:03
-
-
Save stepankuzmin/9b316836a082913c1291ad335014569b to your computer and use it in GitHub Desktop.
traefik docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.6' | |
| services: | |
| traefik: | |
| image: traefik:1.6-alpine | |
| container_name: traefik | |
| restart: always | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| - 8080:8080 | |
| volumes: | |
| - ./traefik:/etc/traefik:Z | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| networks: | |
| - proxy | |
| command: | |
| - --logLevel=DEBUG | |
| - --entrypoints=Name:http Address::80 Redirect.EntryPoint:https | |
| - --entrypoints=Name:https Address::443 TLS | |
| - --defaultentrypoints=http,https | |
| - --acme | |
| - [email protected] | |
| - --acme.storage=/etc/traefik/acme.json | |
| # - --acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory | |
| - --acme.entryPoint=https | |
| - --acme.httpChallenge.entryPoint=http | |
| - --acme.OnHostRule=true | |
| - --acme.onDemand=false | |
| - --acme.acmeLogging=true | |
| - --web | |
| - --docker | |
| - --docker.watch | |
| - --docker.exposedbydefault=false | |
| networks: | |
| proxy: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment