Skip to content

Instantly share code, notes, and snippets.

@tryan225
Created November 7, 2018 04:06
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 tryan225/ae5f92a96f4b6070b0efb43b8a4a021a to your computer and use it in GitHub Desktop.
Save tryan225/ae5f92a96f4b6070b0efb43b8a4a021a to your computer and use it in GitHub Desktop.
version: '2'
services:
proxy:
# You might want to use a proper version
image: traefik
command: --configFile=/traefik.toml
restart: unless-stopped
# Here's the network we created:
networks:
- web
# The traefik entryPoints
ports:
- 80:80
- 443:443
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:traefik.kramericaindustries.net
# Traefik will proxy to its own GUI.
- traefik.port=8080
- traefik.docker.network=web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/traefik/traefik.toml:/traefik.toml
- /opt/traefik/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