Files
endorphin-aster-vm/docker-compose.postgres.yml
T
codex-bot 9648b9e8dd
Verify databases and deploy Aster VM / verify-and-deploy (push) Waiting to run
Initialize Aster VM and deploy PostgreSQL host on ces-control
2026-10-17 23:42:39 +08:00

32 lines
884 B
YAML

# Standalone alternative: docker compose -f docker-compose.postgres.yml up --build -d
services:
aster:
build: .
ports:
- "127.0.0.1:${ASTER_PORT:-8080}:8080"
environment:
ASTER_LISTEN: 0.0.0.0:8080
DATABASE_URL: "postgres://aster:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}@postgres:5432/aster?sslmode=disable"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:17-bookworm
environment:
POSTGRES_DB: aster
POSTGRES_USER: aster
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
volumes:
- aster-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aster -d aster"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
volumes:
aster-postgres: