Docker
Single container
Section titled “Single container”docker run -d \ --name wcp \ --restart unless-stopped \ -p 8000:8000 \ -v wcp_data:/data \ -e WCP_DB_PATH=/data/sync.db \ -e WCP_CONFIG_PATH=/data/config.json \ ghcr.io/lucasmella-stack/wcp:latestEnvironment variables
Section titled “Environment variables”| Variable | Default | Description |
|---|---|---|
WCP_DB_PATH | /data/sync.db | SQLite database path |
WCP_CONFIG_PATH | /data/config.json | JSON config path |
WCP_CORS_ORIGINS | * | Comma-separated allowed origins |
WCP_PORT | 8000 | HTTP port |
Building locally
Section titled “Building locally”git clone https://github.com/lucasmella-stack/WCP.gitcd WCPdocker build -t wcp:local .docker run -d -p 8000:8000 -v wcp_data:/data wcp:localHealth check
Section titled “Health check”The Dockerfile includes a built-in health check:
HEALTHCHECK --interval=30s --timeout=5s \ CMD curl -f http://localhost:8000/health || exit 1Data persistence
Section titled “Data persistence”All data is stored in the /data volume:
/data/├── sync.db # SQLite: connections, links, logs, conflicts└── config.json # Optional static configBack up this volume to preserve all your sync history and connections.