sophia.events/docker-stack-http.yml

34 lines
845 B
YAML
Raw Normal View History

2018-02-01 14:27:43 +00:00
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
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: on-failure
www:
image: lucj/sophia.events
deploy:
labels:
2018-02-02 13:23:45 +00:00
- "traefik.backend=www"
2018-02-01 14:27:43 +00:00
- "traefik.frontend.rule=Host:sophia.events"
2018-02-02 13:23:45 +00:00
- "traefik.port=80"
2018-02-02 12:11:49 +00:00
- "traefik.frontend.entryPoints=http"
- "traefik.frontend.headers.browserXSSFilter=true"
2018-02-02 12:45:38 +00:00
- "traefik.frontend.headers.frameDeny=true"
2018-02-02 12:11:49 +00:00
- "traefik.frontend.headers.contentTypeNosniff=true"
2018-02-01 14:27:43 +00:00
restart_policy:
condition: on-failure
configs:
traefik:
2018-02-02 12:11:49 +00:00
file: ./proxy/http.toml