prodobit
Version:
Open-core business application development platform
41 lines (38 loc) • 850 B
YAML
version: '3.8'
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: prodobit
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
api:
build: .
ports:
- "3001:3001"
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: prodobit
NODE_ENV: production
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3001/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres_data: