Skip to content

Instantly share code, notes, and snippets.

@pakonda
Last active December 4, 2021 13:53
Show Gist options
  • Save pakonda/f52375f6ddbe45d6f64861125c85e39c to your computer and use it in GitHub Desktop.
Save pakonda/f52375f6ddbe45d6f64861125c85e39c to your computer and use it in GitHub Desktop.

Revisions

  1. pakonda renamed this gist Dec 4, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. pakonda created this gist Dec 4, 2021.
    36 changes: 36 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    version: '3'

    services:
    storagenode:
    container_name: storagenode
    image: storjlabs/storagenode:latest
    environment:
    - WALLET=xxx
    - EMAIL=xxx
    - ADDRESS=xxx:1234
    - STORAGE=1TB
    # - STARTUP=true
    ports:
    - 28967:28967
    - 14002:14002
    volumes:
    - /root/.local/share/storj/identity:/app/identity
    - /mnt/storj/storagenode:/app/config
    command: "--operator.wallet-features=zksync"
    restart: unless-stopped
    logging:
    driver: "json-file"
    options:
    max-size: "100m"

    watchtower:
    container_name: watchtower
    image: storjlabs/watchtower:latest
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    command: storagenode watchtower --stop-timeout 300s --interval 21600
    restart: unless-stopped
    logging:
    driver: "json-file"
    options:
    max-size: "20m"