version: "3.3"
services:
<containername>:
image: storjlabs/storagenode:latest
container_name: <containername>
volumes:
- type: bind
source: <"/Path/to/identity/files">
target: /app/identity
- type: bind
source: <"/Path/to/Data/storage/location">
target: /app/config
ports:
- "28967:28967/tcp"
- "28967:28967/udp"
- 14002:14002
restart: unless-stopped
stop_grace_period: 300s
environment:
- WALLET=<WalletID>
- EMAIL=<Emailaddress>
- ADDRESS=<example.com:28967>
- STORAGE=<1TB>
watchtower:
image: storjlabs/watchtower
restart: unless-stopped
container_name: watchtower
command: "<containername> watchtower --stop-timeout 300s --interval 21600"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
3 Likes