forked from alexandre-abrioux/golem-node
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
41 lines (37 loc) · 909 Bytes
/
docker-compose.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.5'
services:
node:
deploy:
replicas: ${NODE_NUM}
command: nice -n${NICENESS} golemsp run
build: .
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
# - /root/.local/share/ya-provider/
# - /root/.local/share/yagna/
devices:
- /dev/kvm:/dev/kvm
env_file:
- .env
labels:
ofelia.enabled: "true"
ofelia.job-exec.golem-clean.schedule: "@daily"
ofelia.job-exec.golem-clean.command: "find /root/.local/share/ya-provider/exe-unit/cache/ -mtime +7 -type f -exec rm {} +"
networks:
- golem_net
healthcheck:
test: /root/healthcheck.sh
interval: 5m
timeout: 10s
autoheal:
image: willfarrell/autoheal:latest
tty: true
restart: always
env_file:
.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
golem_net:
driver: bridge