Skip to content

Instantly share code, notes, and snippets.

@anton-johansson
Last active November 30, 2018 19:36
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 anton-johansson/7c2ca239f760964d9485943435a5f9c7 to your computer and use it in GitHub Desktop.
Save anton-johansson/7c2ca239f760964d9485943435a5f9c7 to your computer and use it in GitHub Desktop.
networks:
traefik-net:
driver: bridge
host-net:
external:
name: host
services:
traefik:
image: traefik:1.7.3-alpine
container_name: traefik
networks:
- traefik-net
restart: always
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
home-assistant:
image: homeassistant/home-assistant:0.81.0
networks:
- host-net
- traefik-net
labels:
traefik.enable: "true"
traefik.port: 8123
traefik.frontend.rule: "Host:example.com"
traefik.frontend.entryPoints: "https"
@anton-johansson
Copy link
Author

Above is a sample, with some settings removed for simplicity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment