Files
goyomi/compose.yml
T
achmad be46add182 chore: add .env.example and wire compose.yml to env vars
- .env.example documents all env vars with defaults (postgres creds, DATABASE_URL, TTLs, pool sizes)
- compose.yml reads postgres credentials and app config from .env via env_file
- .gitignore: track .env.example, ignore .env
2026-05-10 21:35:31 +07:00

39 lines
849 B
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
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
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
restart: unless-stopped
environment:
LOG_LEVEL: info
ports:
- "8191:8191"
app:
build: .
restart: unless-stopped
env_file: .env
ports:
- "${ADDR:-8080}:8080"
depends_on:
postgres:
condition: service_healthy
flaresolverr:
condition: service_started
volumes:
postgres_data: