forked from chesterhow/tale
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjekyll-stack.yml
41 lines (39 loc) · 1.09 KB
/
jekyll-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
31
32
33
34
35
36
37
38
39
40
41
version: "3.9"
services:
blog-new-bridge:
image: "elft3r/blog-new-bridge:latest"
ports:
- "4000"
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://localhost:4000 || exit 1"
interval: 10s
timeout: 10s
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == worker
update_config:
parallelism: 1
delay: 10s
order: start-first
failure_action: rollback
rollback_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.blog-new-bridge.rule=Host(`new-bridge.dev`, `blog.new-bridge.dev`)"
- "traefik.http.routers.blog-new-bridge.tls=true"
- "traefik.http.routers.blog-new-bridge.tls.certresolver=letsencrypt"
- "traefik.docker.network=traefik"
- "traefik.http.services.blog-new-bridge.loadbalancer.server.port=4000"
networks:
- traefik
networks:
traefik:
external: true