-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1019 Bytes
/
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
version: "3.7"
services:
backend:
build:
context: ./api
dockerfile: Dockerfile
environment:
- DB_DATABASE=pabnaxpress
- DB_USERNAME=butterfly-dev
- DB_PASSWORD=blackfire
ports:
- "8000:8000"
volumes:
- "./api:/app/api"
- "/app/api/vendor"
networks:
- app
depends_on:
- db
frontend:
build:
context: ./client
dockerfile: Dockerfile
tty: true
ports:
- "3000:3000"
environment:
# track file changes for Windows devices
- WATCHPACK_POLLING=true
volumes:
- "./client:/app/client"
depends_on:
- backend
networks:
- app
db:
image: mysql:8.0
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: pabnaxpress
MYSQL_USER: butterfly-dev
MYSQL_PASSWORD: blackfire
MYSQL_ROOT_PASSWORD: blackfire
volumes:
- db-data:/var/lib/mysql
networks:
- app
volumes:
db-data: ~
networks:
app:
driver: bridge