Docker
Docker image
Section titled “Docker image”docker pull ghcr.io/pdg-global/rcommerce:latestdocker run -d \ --name rcommerce \ -p 8080:8080 \ -v /path/to/config.toml:/etc/rcommerce/config.toml \ ghcr.io/pdg-global/rcommerce:latestDocker Compose
Section titled “Docker Compose”version: '3.8'services: rcommerce: image: ghcr.io/pdg-global/rcommerce:latest ports: - "8080:8080" volumes: - ./config.toml:/etc/rcommerce/config.toml depends_on: - postgres environment: - RUST_LOG=info
postgres: image: postgres:16 environment: POSTGRES_DB: rcommerce POSTGRES_USER: rcommerce POSTGRES_PASSWORD: your_password volumes: - pgdata:/var/lib/postgresql/data
volumes: pgdata:Build locally
Section titled “Build locally”docker build -t rcommerce .Environment variables
Section titled “Environment variables”RCOMMERCE_CONFIG— path to config fileRUST_LOG— log level (info, debug, warn, error)
Health check
Section titled “Health check”docker exec rcommerce curl -s http://localhost:8080/health