DB_PORT defaults to 5436, DASHBOARD_PORT defaults to 3456. Prod override no longer redeclares ports (was causing duplicates). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
ports:
|
|
- "${DB_PORT:-5436}:5432"
|
|
environment:
|
|
POSTGRES_DB: social_listening
|
|
POSTGRES_USER: sl_user
|
|
POSTGRES_PASSWORD: sl_pass
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U sl_user -d social_listening"]
|
|
interval: 3s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
social-listening:
|
|
build: .
|
|
ports:
|
|
- "127.0.0.1:${DASHBOARD_PORT:-3456}:3456"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./agents/social-listening/outputs:/app/agents/social-listening/outputs
|
|
- ./agents/social-listening/briefs:/app/agents/social-listening/briefs
|
|
environment:
|
|
- APIFY_LIVE_APPROVED=${APIFY_LIVE_APPROVED:-false}
|
|
- TEST_MODE=${TEST_MODE:-false}
|
|
- DASHBOARD_PORT=3456
|
|
- DATABASE_URL=postgresql://sl_user:sl_pass@db:5432/social_listening
|
|
- DASH_USER=${DASH_USER:-admin}
|
|
- DASH_PASS=${DASH_PASS:-changeme}
|
|
|
|
volumes:
|
|
pgdata:
|