forked from filecoin-saturn/L1-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.44 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
version: "3.3"
services:
saturn-node:
image: ghcr.io/filecoin-saturn/l1-node:${SATURN_NETWORK:-test}
container_name: saturn-node
restart: unless-stopped
environment:
FIL_WALLET_ADDRESS: "${FIL_WALLET_ADDRESS:?please make sure to set your FIL_WALLET_ADDRESS environment variable in the .env file}"
NODE_OPERATOR_EMAIL: "${NODE_OPERATOR_EMAIL:?please make sure to set your NODE_OPERATOR_EMAIL environment variable in the .env file}"
SPEEDTEST_SERVER_CONFIG: "${SPEEDTEST_SERVER_CONFIG}"
env_file:
- .env
ulimits:
nofile:
soft: 1000000
hard: 1000000
network_mode: host
stop_signal: SIGTERM
stop_grace_period: 30m
labels:
com.centurylinklabs.watchtower.scope: saturn
com.centurylinklabs.watchtower.enable: "true"
com.centurylinklabs.watchtower.lifecycle.pre-update: "sleep $$((RANDOM % 3600))"
com.centurylinklabs.watchtower.lifecycle.pre-update-timeout: 60
volumes:
- ${SATURN_HOME:-$HOME}/shared:/usr/src/app/shared
watchtower:
image: containrrr/watchtower
container_name: saturn-watchtower
restart: always
environment:
WATCHTOWER_POLL_INTERVAL: 300
WATCHTOWER_LABEL_ENABLE: "true"
WATCHTOWER_LIFECYCLE_HOOKS: "true"
WATCHTOWER_SCOPE: saturn
WATCHTOWER_INCLUDE_RESTARTING: "true"
labels:
com.centurylinklabs.watchtower.scope: saturn
volumes:
- /var/run/docker.sock:/var/run/docker.sock