mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
Single version policy: ghcr.io/hanzoai/sql:latest everywhere. No version pinning, no backwards compat, always latest stable.
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
services:
|
|
postgres:
|
|
image: ghcr.io/hanzoai/sql:latest
|
|
environment:
|
|
POSTGRES_DB: mpc_api
|
|
POSTGRES_USER: mpc
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U mpc -d mpc_api"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
valkey:
|
|
image: valkey/valkey:8-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
healthcheck:
|
|
test: ["CMD", "valkey-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
command: >
|
|
start --mode consensus
|
|
--api-db postgres://mpc:${POSTGRES_PASSWORD:-changeme}@postgres:5432/mpc_api?sslmode=disable
|
|
--api-kv valkey:6379
|
|
--api-listen :8081
|
|
--jwt-secret ${JWT_SECRET:-dev-jwt-secret-change-in-production}
|
|
ports:
|
|
- "8081:8081"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
valkey:
|
|
condition: service_healthy
|
|
environment:
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
|
|
|
|
dashboard:
|
|
build:
|
|
context: ./dashboard
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NEXT_PUBLIC_API_URL=http://localhost:8081/api/v1
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
pgdata:
|