-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 802 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 802 Bytes
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
services:
db:
image: mysql:9.7
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: prepkit
MYSQL_USER: prepkit
MYSQL_PASSWORD: prepkit
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "prepkit", "--password=prepkit"]
interval: 5s
timeout: 5s
retries: 20
start_period: 30s
app:
build: ./backend
env_file: ./backend/.env
environment:
MYSQL_SERVER: db
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
web:
build:
context: ./frontend
args:
BACKEND_URL: http://app:8000
environment:
BACKEND_URL: http://app:8000
ports:
- "3000:3000"
depends_on:
- app