Constant DOCKER_COMPOSE_TEMPLATE
Source const DOCKER_COMPOSE_TEMPLATE: &str = r#"# Generated by `cellstate start`. Do not edit manually.
# To use the full dev stack (observability, etc): docker/docker-compose.yml
services:
cellstate-pg:
image: pgvector/pgvector:pg18
container_name: cellstate-pg
environment:
POSTGRES_DB: cellstate
POSTGRES_USER: cellstate
POSTGRES_PASSWORD: cellstate_local
ports:
- "5432:5432"
volumes:
- cellstate-pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cellstate -d cellstate"]
interval: 5s
timeout: 5s
retries: 10
networks:
- cellstate-net
cellstate-api:
image: ghcr.io/cellstate/cellstate:latest
container_name: cellstate-api
depends_on:
cellstate-pg:
condition: service_healthy
environment:
DATABASE_URL: postgres://cellstate:cellstate_local@cellstate-pg:5432/cellstate
CELLSTATE_ENV: development
CELLSTATE_SECRET: local_dev_secret_change_in_production
CELLSTATE_CORS_ORIGINS: "http://localhost:3000,http://localhost:5173,http://localhost:5174"
ports:
- "3000:3000"
command: ["cellstate", "serve", "--migrate"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health/live"]
interval: 10s
timeout: 5s
retries: 12
networks:
- cellstate-net
volumes:
cellstate-pg-data:
networks:
cellstate-net:
"#;