Files
fullstack-starter/compose.yaml
T

30 lines
582 B
YAML

services:
app:
build: .
ports:
- '3000:3000'
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
depends_on:
db:
condition: service_healthy
db:
image: postgres:17-alpine
# ports:
# - '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: