-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack.yml
43 lines (41 loc) · 915 Bytes
/
docker-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
42
43
# yaml-language-server: $schema=https://raw.githubusercontent.com/swarmlibs/dockerstack-schema/main/schema/dockerstack-spec.json
services:
chrony:
image: socheatsok78/chrony:3.20
environment:
TZ: "UTC+0"
LOGLEVEL: "0"
ports:
- mode: host
target: 123
published: 123
protocol: udp
- mode: host
target: 9123
published: 9123
protocol: tcp
volumes:
- chrony:/var/lib/chrony
cap_add:
- IPC_LOCK
deploy:
resources:
limits:
memory: 24M
reservations:
memory: 16M
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
update_config:
parallelism: 1
delay: 10s
order: stop-first
rollback_config:
parallelism: 1
delay: 10s
order: stop-first
volumes:
chrony: