-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
61 lines (56 loc) · 1.44 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
61 lines (56 loc) · 1.44 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
version: "3.8"
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: repo_doctor
POSTGRES_USER: repo_doctor
POSTGRES_PASSWORD: prod_password_change_me
volumes:
- postgres_prod_data:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U repo_doctor -d repo_doctor"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redis_prod_data:/data
restart: always
api:
build:
context: .
dockerfile: apps/api/Dockerfile
environment:
PORT: 4000
DATABASE_URL: postgresql://repo_doctor:prod_password_change_me@postgres:5432/repo_doctor?schema=public
REDIS_URL: redis://redis:6379
# Pass through external environment vars for API integrations
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
ports:
- "4000:4000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
restart: always
web:
build:
context: .
dockerfile: apps/web/Dockerfile
args:
# Resolve to backend container or external load balancer domain
VITE_API_URL: ${VITE_API_URL:-http://localhost:4000}
ports:
- "80:80"
depends_on:
- api
restart: always
volumes:
postgres_prod_data:
redis_prod_data: