Update Docker Compose example

This commit is contained in:
Veaceslav Doina 2023-06-13 14:34:31 +03:00 committed by benbierens
parent a2b158f6b5
commit 8a648f4133
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 40 additions and 24 deletions

View File

@ -1,27 +1,43 @@
services: services:
codex-node1: codex-node1:
image: status-im/codexsetup.slim:latest image: codexstorage/nim-codex:sha-b1aba81
ports:
- 8080:8080
# Available environment variables:
environment: environment:
- LOG_LEVEL=TRACE - CODEX_LOG_LEVEL=${CODEX_LOG_LEVEL:-TRACE}
- METRICS_ADDR=0.0.0.0 - CODEX_METRICS=${CODEX_METRICS:-false}
- METRICS_PORT=9090 - CODEX_METRICS_ADDRESS=${CODEX_METRICS_ADDRESS:-0.0.0.0}
- NAT_IP=2.3.4.5 - CODEX_METRICS_PORT=${CODEX_METRICS_PORT:-8008}
- API_PORT=8080 - CODEX_DATA_DIR=${CODEX_DATA_DIR:-/datadir}
- DISC_IP=3.4.5.6 - CODEX_LISTEN_ADDRS=${CODEX_LISTEN_ADDRS:-/ip4/0.0.0.0/tcp/2345}
- DISC_PORT=8765 - CODEX_NAT=${CODEX_NAT:-10.0.0.10}
- NET_PRIVKEY=privkey - CODEX_DISC_IP=${CODEX_DISC_IP:-0.0.0.0}
- BOOTSTRAP_SPR=bootstrap_record - CODEX_DISC_PORT=${CODEX_DISC_PORT:-8090}
- MAX_PEERS=123 - CODEX_NET_PRIVKEY=${CODEX_NET_PRIVKEY:-key}
- AGENT_STRING=agent_string # - CODEX_BOOTSTRAP_NODE=${CODEX_BOOTSTRAP_NODE}
- STORAGE_QUOTA=123456789 - CODEX_MAX_PEERS=${CODEX_MAX_PEERS:-160}
- BLOCK_TTL=23456 - CODEX_AGENT_STRING=${CODEX_AGENT_STRING:-Codex}
- CACHE_SIZE=6543 - CODEX_API_BINDADDR=${CODEX_API_BINDADDR:-127.0.0.1}
- ETH_PROVIDER=eth - CODEX_API_PORT=${CODEX_API_PORT:-8080}
- ETH_ACCOUNT=account - CODEX_REPO_KIND=${CODEX_REPO_KIND:-fs}
- ETH_MARKETPLACE_ADDRESS=0x59b670e9fA9D0A427751Af201D676719a970857b - CODEX_STORAGE_QUOTA=${CODEX_STORAGE_QUOTA:-8589934592}
- SIMULATE_PROOF_FAILURES=2 - CODEX_BLOCK_TTL=${CODEX_BLOCK_TTL:-0}
# - CODEX_BLOCK_MI=${CODEX_BLOCK_MI}
- CODEX_BLOCK_MN=${CODEX_BLOCK_MN:-1000}
- CODEX_CACHE_SIZE=${CODEX_CACHE_SIZE:-0}
- CODEX_PERSISTENCE=${CODEX_PERSISTENCE:-false}
- CODEX_ETH_PROVIDER=${CODEX_ETH_PROVIDER:-ws://localhost:8545}
# - CODEX_ETH_ACCOUNT=${CODEX_ETH_ACCOUNT}
# - CODEX_MARKETPLACE_ADDRESS=${CODEX_MARKETPLACE_ADDRESS:-0x59b670e9fA9D0A427751Af201D676719a970857b}
- CODEX_VALIDATOR=${CODEX_VALIDATOR:-false}
- CODEX_VALIDATOR_MAX_SLOTS=${CODEX_VALIDATOR_MAX_SLOTS:-1000}
ports:
- 8080:8080/tcp # REST API
- 8008:8008/tcp # Metrics
- 2345:2345/tcp # libp2p
- 8090:8090/udp # DHT discovery
volumes:
- /datadir:/datadir
networks:
- codex
networks:
codex:
driver: bridge