-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (63 loc) · 1.35 KB
/
docker-compose.yml
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
version: '3'
services:
app:
build:
context: .
dockerfile: ./backend/v2/Dockerfile
ports:
- "8080:8080"
environment:
APP_ADDR: :8080
DB_USER: root
DB_PASS: pass
DB_HOST: db
DB_PORT: "3306"
DB_NAME: app
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: ./backend/v2/
volumes:
- ./images:/app/images
- ./scripts:/app/scripts
- ./data:/app/data
db:
image: mysql:latest
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: app
expose:
- "3306"
healthcheck:
test: mysql --user=root --password=pass --execute "SHOW DATABASES;"
interval: 1s
timeout: 10s
retries: 30
adminer:
image: adminer:latest
ports:
- "8081:8080"
depends_on:
db:
condition: service_healthy
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile.frontend
ports:
- "8083:80"
- "8082:8080"
graphplotter:
build:
context: .
dockerfile: ./graphplotter/Dockerfile.graphplotter
ports:
- "8086:8086"
volumes:
- ./images:/app/images
- ./scripts:/app/scripts
- ./data:/app/data