-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
54 lines (52 loc) · 1.48 KB
/
compose.yml
File metadata and controls
54 lines (52 loc) · 1.48 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
services:
orchestrator:
image: ghcr.io/nesaorg/orchestrator:testnet-latest
container_name: orchestrator
platform: linux/amd64
restart: unless-stopped
networks: [ nesa ]
env_file:
- ./env/base.env
- ./env/orchestrator.env
environment:
PSUTIL_PROCFS_PATH: /host_proc
volumes:
- ${HOME}/.nesa/cache:/root/.cache
- ${HOME}/.nesa/identity:/root/.nesa/identity
- /proc:/host_proc:ro
labels:
- "nesa.component=orchestrator"
- "nesa.node_id=${NODE_ID}"
- "nesa.moniker=${MONIKER}"
- "nesa.public_ip=${PUBLIC_IP}"
- "nesa.chain_id=${CHAIN_ID}"
healthcheck:
test: ["CMD", "python", "-c", "print('ok')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
watchtower:
image: nickfedor/watchtower
container_name: watchtower
restart: unless-stopped
depends_on:
orchestrator:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=300
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_REVIVE_STOPPED=true
- WATCHTOWER_DISABLE_CONTAINERS=nesachain
labels:
- "nesa.component=watchtower"
- "nesa.node_id=${NODE_ID}"
- "nesa.moniker=${MONIKER}"
- "nesa.public_ip=${PUBLIC_IP}"
- "nesa.chain_id=${CHAIN_ID}"
networks:
nesa: { driver: bridge }