forked from filecoin-saturn/L1-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrating away from update.sh and run.sh
Let us embrace docker compose. Fixes filecoin-saturn#109, filecoin-saturn#125
- Loading branch information
1 parent
209e0ad
commit df19399
Showing
3 changed files
with
79 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "3.8" | ||
services: | ||
saturn-node: | ||
image: ghcr.io/filecoin-saturn/l1-node:${SATURN_NETWORK:-test} | ||
container_name: saturn_node | ||
restart: always | ||
environment: | ||
SATURN_NETWORK: "${SATURN_NETWORK:-test}" | ||
FIL_WALLET_ADDRESS: "${FIL_WALLET_ADDRESS:?please make sure to set your FIL_WALLET_ADDRESS environment variable}" | ||
NODE_OPERATOR_EMAIL: "${NODE_OPERATOR_EMAIL:?please make sure to set your NODE_OPERATOR_EMAIL environment variable}" | ||
SPEEDTEST_SERVER_CONFIG: "${SPEEDTEST_SERVER_CONFIG}" | ||
ulimits: | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
network_mode: host | ||
stop_signal: SIGTERM | ||
stop_grace_period: 30m | ||
labels: | ||
com.centurylinklabs.watchtower.enable: true | ||
com.centurylinklabs.watchtower.lifecycle.pre-update-timeout: 30 | ||
com.centurylinklabs.watchtower.lifecycle.post-update-timeout: 30 | ||
volumes: | ||
- ${SATURN_HOME:-$HOME}/shared:/usr/src/app/shared | ||
|
||
watchtower: | ||
image: containrrr/watchtower | ||
environment: | ||
WATCHTOWER_POLL_INTERVAL: 10800 | ||
WATCHTOWER_LABEL_ENABLE: true | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters