-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
34 lines (34 loc) · 860 Bytes
/
docker-stack.yml
File metadata and controls
34 lines (34 loc) · 860 Bytes
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/swarmlibs/dockerstack-schema/main/schema/dockerstack-spec.json
services:
cacheserver:
image: ghcr.io/cacheserver/linux-packages:main
environment:
- DOMAIN=localhost
- PORT=80
ports:
- 80:80
volumes:
- type: volume
source: cache
target: /var/cache/cacheserver/linux-packages
stop_grace_period: 5m
deploy:
restart_policy:
condition: any
delay: 10s
max_attempts: 5
window: 60s
update_config:
parallelism: 1
delay: 10s
failure_action: continue
monitor: 60s
max_failure_ratio: 0.1
rollback_config:
parallelism: 1
delay: 10s
failure_action: continue
monitor: 60s
max_failure_ratio: 0.1
volumes:
cache: