Created
April 5, 2018 20:39
-
-
Save Saturate/e753d766d2b5c6979b08d57554c46ff9 to your computer and use it in GitHub Desktop.
Træfik + Let's Encrypt + more?
This file contains 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