Files
electric-cherry/docker-compose.yml
T
2026-10-17 10:55:28 -04:00

34 lines
1.6 KiB
YAML

services:
electric-cherry:
build:
context: .
image: electric-cherry:latest
container_name: electric-cherry
restart: unless-stopped
ports:
- '3000:3000'
volumes:
# Preserve the existing controller database by default. Set EC_DATA_DIR
# to a dedicated persistent directory for a new controller installation.
- ${EC_DATA_DIR:-/root/zombies/.electric-cherry}:/data:rw
environment:
ORIGIN: ${EC_PUBLIC_URL:-http://localhost:3000}
EC_SETUP_TOKEN: ${EC_SETUP_TOKEN:-}
EC_TELEMETRY_TOKEN: ${EC_TELEMETRY_TOKEN:-}
EC_BANK_MAX_BALANCE: ${EC_BANK_MAX_BALANCE:-250000}
EC_AUTH_ALLOW_HTTP: ${EC_AUTH_ALLOW_HTTP:-false}
# Enable only behind a trusted proxy that sets the client-address header.
ADDRESS_HEADER: ${ADDRESS_HEADER:-}
XFF_DEPTH: ${XFF_DEPTH:-1}
# Legacy host imports stream whole game files; buffering routes enforce their own caps.
BODY_SIZE_LIMIT: 'Infinity'
DB_PATH: /data/cherry.db
GAME_FILES_ROOT: /data/game-files
BETA_ARCHIVE_DIR: /data/beta-archive
# These are logical legacy paths; native instance files live on agents.
SERVERS_ROOT: /data/legacy/t5
T6_SERVERS_ROOT: /data/legacy/t6
PLUTAINER_IMAGE: ${PLUTAINER_IMAGE:-ghcr.io/ayymoss/plutainer:latest}
# Optional. Native instances otherwise receive individual random secrets.
RCON_PASSWORD: ${RCON_PASSWORD:-}