-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
132 lines (126 loc) · 3.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
132 lines (126 loc) · 3.79 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
121
122
123
124
125
126
127
128
129
130
131
132
services:
postgres:
image: postgres:13-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME:-maxun}
POSTGRES_USER: ${DB_USER:-maxun}
POSTGRES_PASSWORD: ${DB_PASSWORD:-maxun_dev}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-maxun} -d ${DB_NAME:-maxun}"]
interval: 5s
timeout: 5s
retries: 12
minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-maxun}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-maxun_dev_secret}
ports:
- "${MINIO_PORT:-9000}:9000"
- "${MINIO_CONSOLE_PORT:-9001}:9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 12
browser:
build:
context: .
dockerfile: services/browser/Dockerfile
restart: unless-stopped
environment:
NODE_ENV: production
BROWSER_WS_PORT: "3001"
BROWSER_HEALTH_PORT: "3002"
BROWSER_WS_HOST: browser
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
ports:
- "${BROWSER_WS_PORT:-3001}:3001"
- "${BROWSER_HEALTH_PORT:-3002}:3002"
shm_size: 2gb
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3002/health"]
interval: 10s
timeout: 5s
retries: 6
backend:
build:
context: .
dockerfile: services/backend/Dockerfile
restart: unless-stopped
environment:
NODE_ENV: ${NODE_ENV:-development}
BACKEND_PORT: "8080"
BACKEND_URL: ${BACKEND_URL:-http://localhost:8080}
PUBLIC_URL: ${PUBLIC_URL:-http://localhost:8080}
VITE_PUBLIC_URL: ${VITE_PUBLIC_URL:-http://localhost:8080}
JWT_SECRET: ${JWT_SECRET:?set JWT_SECRET in .env}
SESSION_SECRET: ${SESSION_SECRET:?set SESSION_SECRET in .env}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:?set ENCRYPTION_KEY in .env}
DB_NAME: ${DB_NAME:-maxun}
DB_USER: ${DB_USER:-maxun}
DB_PASSWORD: ${DB_PASSWORD:-maxun_dev}
DB_HOST: postgres
DB_PORT: "5432"
DB_SSL: "false"
MINIO_ENDPOINT: minio
MINIO_PORT: "9000"
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-maxun}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-maxun_dev_secret}
MINIO_PUBLIC_URL: http://localhost:${MINIO_PORT:-9000}
BROWSER_WS_HOST: browser
BROWSER_WS_PORT: "3001"
BROWSER_HEALTH_PORT: "3002"
MAXUN_TELEMETRY: ${MAXUN_TELEMETRY:-true}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
expose:
- "8080"
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
browser:
condition: service_healthy
frontend:
build:
context: ./services/frontend
dockerfile: Dockerfile
restart: unless-stopped
environment:
PORT: "5173"
FRONTEND_PORT: "5173"
BACKEND_URL: ${BACKEND_URL:-http://localhost:8080}
VITE_BACKEND_URL: ${VITE_BACKEND_URL:-http://localhost:8080}
PUBLIC_URL: ${PUBLIC_URL:-http://localhost:8080}
expose:
- "5173"
depends_on:
- backend
gateway:
build:
context: ./services/gateway
dockerfile: Dockerfile
restart: unless-stopped
environment:
PORT: "8080"
BACKEND_UPSTREAM: backend:8080
FRONTEND_UPSTREAM: frontend:5173
ports:
- "8080:8080"
depends_on:
- frontend
- backend
volumes:
postgres-data:
minio-data: