-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ghcr.yml
More file actions
54 lines (49 loc) · 1.38 KB
/
docker-compose.ghcr.yml
File metadata and controls
54 lines (49 loc) · 1.38 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
version: '3.9'
services:
db:
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_DATABASE: reviews
MYSQL_USER: reviews
MYSQL_PASSWORD: reviews
MYSQL_ROOT_PASSWORD: root
command: [
"--default-authentication-plugin=mysql_native_password",
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci"
]
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -proot || exit 1"]
interval: 5s
timeout: 3s
retries: 30
start_period: 15s
backend:
image: ghcr.io/lisacek/reviewsflow-backend:latest
restart: unless-stopped
environment:
DATABASE_URL: mysql+aiomysql://reviews:reviews@db:3306/reviews
HEADLESS: "true"
ALLOW_REGISTRATIONS: "true"
WORKER_COUNT: 1
MAX_PLAYWRIGHT_INSTANCES: 2
depends_on:
db:
condition: service_healthy
# Do not expose backend publicly; frontend proxies /api to backend
frontend:
image: ghcr.io/lisacek/reviewsflow-frontend:latest
depends_on:
- backend
environment:
# Optional: if your frontend uses runtime config via env (not build)
# VITE_API_BASE is baked at build; override only if image expects it.
# VITE_API_BASE: http://backend:8000
NGINX_PORT: 80
ports:
- "4380:80"
volumes:
db_data: