31 lines
685 B
YAML
31 lines
685 B
YAML
version: '3.4'
|
|
services:
|
|
proxy:
|
|
image: traefik:1.5.1
|
|
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"
|
|
- "traefik.frontend.rule=Host:sophia.events"
|
|
- "traefik.frontend.entryPoints=http,https"
|
|
restart_policy:
|
|
condition: on-failure
|
|
configs:
|
|
traefik:
|
|
file: ./tls/traefik.toml
|