Created
April 5, 2018 20:39
-
-
Save Saturate/203ecac8e2080c11ecbb778a34c67df5 to your computer and use it in GitHub Desktop.
Træfik + Let's Encrypt + more?
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' | |
services: | |
reverse-proxy: | |
image: traefik #The official Traefik docker image | |
command: --api --docker #Enables the web UI and tells Træfik to listen to docker | |
restart: always | |
networks: | |
- web | |
ports: | |
- "80:80" #The HTTP port | |
- 443:443 | |
- "8080:8080" #The Web UI (enabled by --api) | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock #So that Traefik can listen to the Docker events | |
- ./traefik.toml:/traefik.toml | |
- ./acme.json:/acme.json | |
networks: | |
web: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment