forked from prebid/salesagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (99 loc) · 3.69 KB
/
docker-compose.yml
File metadata and controls
120 lines (99 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: adcp
POSTGRES_USER: adcp_user
POSTGRES_PASSWORD: secure_password_change_me
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5435}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U adcp_user -d adcp"]
interval: 10s
timeout: 5s
retries: 5
adcp-server:
build: .
environment:
# Database configuration
DATABASE_URL: postgresql://adcp_user:secure_password_change_me@postgres:5432/adcp?sslmode=disable
# Secrets (loaded from host environment or .env.secrets file via shell)
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
SUPER_ADMIN_EMAILS: ${SUPER_ADMIN_EMAILS:-}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
GAM_OAUTH_CLIENT_ID: ${GAM_OAUTH_CLIENT_ID:-}
GAM_OAUTH_CLIENT_SECRET: ${GAM_OAUTH_CLIENT_SECRET:-}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
APPROXIMATED_API_KEY: ${APPROXIMATED_API_KEY:-}
APPROXIMATED_PROXY_IP: ${APPROXIMATED_PROXY_IP:-37.16.24.200}
APPROXIMATED_BACKEND_URL: ${APPROXIMATED_BACKEND_URL:-adcp-sales-agent.fly.dev}
# Skip nginx for standalone service
SKIP_NGINX: "true"
# Optional: Dry run mode
# ADCP_DRY_RUN: true
# Testing mode (for E2E tests - relaxes validation)
ADCP_TESTING: ${ADCP_TESTING:-false}
# Create sample data for E2E tests (products, etc.)
CREATE_SAMPLE_DATA: ${CREATE_SAMPLE_DATA:-true}
depends_on:
postgres:
condition: service_healthy
ports:
- "${ADCP_SALES_PORT:-8092}:8080"
- "${A2A_PORT:-8094}:8091"
volumes:
# Optional: Mount audit logs
- ./audit_logs:/app/audit_logs
# Optional: Mount for development
# - .:/app
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
admin-ui:
build: .
command: python -m src.admin.server
environment:
DATABASE_URL: postgresql://adcp_user:secure_password_change_me@postgres:5432/adcp?sslmode=disable
ADMIN_UI_PORT: ${ADMIN_UI_PORT:-8001}
FLASK_ENV: production
FLASK_DEBUG: ${FLASK_DEBUG:-0}
FLASK_SECRET_KEY: ${FLASK_SECRET_KEY:-dev-secret-key-change-in-production}
# Test mode
ADCP_AUTH_TEST_MODE: ${ADCP_AUTH_TEST_MODE:-false}
# Secrets (loaded from host environment or .env.secrets file via shell)
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
SUPER_ADMIN_EMAILS: ${SUPER_ADMIN_EMAILS:-}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
GAM_OAUTH_CLIENT_ID: ${GAM_OAUTH_CLIENT_ID:-}
GAM_OAUTH_CLIENT_SECRET: ${GAM_OAUTH_CLIENT_SECRET:-}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
APPROXIMATED_API_KEY: ${APPROXIMATED_API_KEY:-}
APPROXIMATED_PROXY_IP: ${APPROXIMATED_PROXY_IP:-37.16.24.200}
APPROXIMATED_BACKEND_URL: ${APPROXIMATED_BACKEND_URL:-adcp-sales-agent.fly.dev}
# Server ports - external ports for agent cards
ADCP_SALES_PORT: ${ADCP_SALES_PORT:-8080}
A2A_PORT: ${A2A_PORT:-8091}
# Skip nginx for standalone service
SKIP_NGINX: "true"
depends_on:
postgres:
condition: service_healthy
ports:
- "${ADMIN_UI_PORT:-8001}:${ADMIN_UI_PORT:-8001}"
volumes:
# Mount OAuth credentials file
# - ./client_secret.json:/app/client_secret.json:ro
- ./audit_logs:/app/audit_logs
healthcheck:
test: ["CMD", "sh", "-c", "curl -f http://localhost:$${ADMIN_UI_PORT:-8001}/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres_data: