-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (48 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
56 lines (48 loc) · 1.21 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
miniclust:
image: openmole/miniclust:latest
container_name: miniclust
hostname: ${HOSTNAME}
command: --config "/config/config.yml"
volumes:
- config-volume:/config
- ./data:/data
environment:
- HOSTNAME=${HOSTNAME}
restart: always
privileged: true
depends_on:
- init
labels:
- com.centurylinklabs.watchtower.enable=true
init:
image: debian:12-slim
entrypoint: /bin/sh -c "
cp /run/secrets/miniclust_config /config/config.yml &&
chmod 600 /config/config.yml &&
chown -R 1001:1001 /config &&
echo '[init] Initialization complete'"
volumes:
- config-volume:/config
secrets:
- miniclust_config
user: "0"
restart: "no"
watchtower:
image: nickfedor/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
#- WATCHTOWER_INCLUDE_RESTARTING=true
#- WATCHTOWER_INCLUDE_STOPPED=true
#- WATCHTOWER_REVIVE_STOPPED=true
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=60
- WATCHTOWER_LABEL_ENABLE=true
secrets:
miniclust_config:
file: ./config.yml
volumes:
config-volume: