sophia.events/docker-stack.yaml

28 lines
688 B
YAML
Raw Normal View History

2018-01-29 07:33:15 +00:00
version: '3.4'
services:
proxy:
image: traefik:1.5.0
configs:
- source: traefik
target: /etc/traefik/traefik.toml
2018-01-29 07:50:48 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
restart_policy:
condition: on-failure
2018-01-29 07:33:15 +00:00
www:
image: lucj/sophia.events
2018-01-29 07:50:48 +00:00
deploy:
2018-01-29 09:10:21 +00:00
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:sophia.events"
- "traefik.frontend.entryPoints=http,https"
- "traefik.port=80"
- "traefik.web.frontend.rule=Host:sophia.events"
- "traefik.web.port=80"
2018-01-29 07:50:48 +00:00
restart_policy:
condition: on-failure
2018-01-29 07:33:15 +00:00
configs:
traefik:
file: ./tls/traefik.toml