-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (50 loc) · 1.36 KB
/
compose.yaml
File metadata and controls
53 lines (50 loc) · 1.36 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
services:
app:
build:
context: .
dockerfile: docker/php/Dockerfile
target: ${APP_TARGET:-dev}
volumes:
- .:/var/www/html
- vendor:/var/www/html/vendor
environment:
DB_DSN: "pgsql:host=db;dbname=constraint_engine"
DB_USER: ${DB_USER:-app}
DB_PASS: ${DB_PASS:-secret}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
ANTHROPIC_MODEL: ${ANTHROPIC_MODEL:-claude-sonnet-4-5-20250929}
API_BASE_URL: ${API_BASE_URL:-http://localhost:8080}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "${PORT:-8080}:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- .:/var/www/html:ro
depends_on:
- app
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: constraint_engine
POSTGRES_USER: ${DB_USER:-app}
POSTGRES_PASSWORD: ${DB_PASS:-secret}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- db_data:/var/lib/postgresql/data
- ./docker/db/init-test-db.sh:/docker-entrypoint-initdb.d/init-test-db.sh:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-app} -d constraint_engine"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
volumes:
db_data:
vendor: