Skip to content

Instantly share code, notes, and snippets.

@Saturate
Created April 5, 2018 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saturate/203ecac8e2080c11ecbb778a34c67df5 to your computer and use it in GitHub Desktop.
Save Saturate/203ecac8e2080c11ecbb778a34c67df5 to your computer and use it in GitHub Desktop.
Træfik + Let's Encrypt + more?
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