Created
November 7, 2018 04:06
-
-
Save tryan225/ae5f92a96f4b6070b0efb43b8a4a021a to your computer and use it in GitHub Desktop.
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: '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