velody/infra/docker/compose.local.yml

34 lines
711 B
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
env_file:
- ../docker/env/postgres.env.example
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
api:
build:
context: ../../
dockerfile: backend/Dockerfile
restart: unless-stopped
env_file:
- ../docker/env/backend.env.example
ports:
- "3007:3007"
depends_on:
postgres:
condition: service_healthy
volumes:
- ../../runtime:/app/runtime
volumes:
postgres_data: