Last active
June 2, 2021 04:15
-
-
Save sftblw/7b0ff181f298786fb82455ccdacf6ed7 to your computer and use it in GitHub Desktop.
storj node docker-compose.yml
This file contains hidden or 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
# down: 300s wait is needed | |
# docker-compose down -t 300 | |
version: '3.3' | |
services: | |
storagenode: | |
restart: unless-stopped | |
ports: | |
- '28967:28967' | |
- '12345:14002' # monitor | |
environment: | |
- WALLET=0xABC... | |
- [email protected] | |
- ADDRESS=example.com:28967 | |
- STORAGE=1.5TB | |
# https://forum.storj.io/t/watchtower-and-docker-compose/6321 | |
volumes: | |
- type: bind | |
source: /home/docker/.local/share/storj/identity/storagenode | |
target: /app/identity | |
- type: bind | |
source: /mnt/hdd/storj | |
target: /app/config | |
container_name: storagenode | |
image: 'storjlabs/storagenode:latest' | |
# https://forum.storj.io/t/watchtower-and-docker-compose/6321 | |
watchtower: | |
image: storjlabs/watchtower | |
restart: unless-stopped | |
command: "storagenode watchtower --stop-timeout 300s --interval 21600" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment