-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
30 lines (28 loc) · 898 Bytes
/
stack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: "3.8"
services:
foodpartners-international:
image: docker-registry.groupclaes.be/fpi_website:latest
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.labels.worker == true]
resources:
reservations:
memory: 40M
labels:
- "traefik.enable=true"
- "traefik.http.routers.foodpartners-international-web.rule=Host(`foodpartners-international.be`) || Host(`www.foodpartners-international.be`)"
- "traefik.http.routers.foodpartners-international-web.entrypoints=web"
- "traefik.http.services.foodpartners-international-web.loadbalancer.server.port=80"
healthcheck:
test: wget -q --spider http://localhost/ || exit 1
interval: 10s
timeout: 5s
start_period: 5s
retries: 2
networks:
- traefik_web
networks:
traefik_web:
external: true