sophia.events/docker-stack.yaml

32 lines
685 B
YAML
Raw Normal View History

2018-01-29 07:33:15 +00:00
version: '3.4'
services:
2018-01-29 14:08:14 +00:00
proxy:
2018-01-30 20:15:30 +00:00
image: traefik:1.5.1
2018-01-29 14:08:14 +00:00
configs:
- source: traefik
target: /etc/traefik/traefik.toml
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 80:80
- 443:443
- 8080:8080
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: on-failure
www:
image: lucj/sophia.events
deploy:
labels:
- "traefik.port=80"
2018-01-30 20:15:30 +00:00
- "traefik.frontend.rule=Host:sophia.events"
- "traefik.frontend.entryPoints=http,https"
2018-01-29 14:08:14 +00:00
restart_policy:
condition: on-failure
2018-01-29 07:33:15 +00:00
configs:
traefik:
file: ./tls/traefik.toml