2026-04-03 16:56:25 -06:00
|
|
|
services:
|
2026-04-03 17:21:01 -06:00
|
|
|
db:
|
|
|
|
|
image: postgres:16-alpine
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "5433:5432"
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
|
POSTGRES_DB: teressa
|
|
|
|
|
volumes:
|
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
2026-04-03 16:56:25 -06:00
|
|
|
app:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
2026-04-03 17:21:01 -06:00
|
|
|
- "3001:3000"
|
2026-04-03 16:56:25 -06:00
|
|
|
env_file:
|
|
|
|
|
- .env.production
|
|
|
|
|
environment:
|
|
|
|
|
- NODE_OPTIONS=--dns-result-order=ipv4first
|
|
|
|
|
dns:
|
|
|
|
|
- 8.8.8.8
|
|
|
|
|
- 1.1.1.1
|
|
|
|
|
volumes:
|
|
|
|
|
- uploads:/app/uploads
|
2026-04-03 17:21:01 -06:00
|
|
|
depends_on:
|
|
|
|
|
db:
|
|
|
|
|
condition: service_healthy
|
2026-04-03 16:56:25 -06:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
uploads:
|
2026-04-03 17:21:01 -06:00
|
|
|
pgdata:
|