-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.22 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
version: "3.6"
services:
mysql-server:
build:
context: ./mysql-server
dockerfile: Dockerfile
ports:
- "3306"
expose:
- "3306"
volumes:
- db_data:/var/lib/mysql
networks:
- regisgen
nodejs-server:
build:
context: ./nodejs-server
dockerfile: Dockerfile
depends_on:
- mysql-server
ports:
- "5000:5000"
expose:
- "5000"
volumes:
- ./nodejs-server:/opt/app:delegated
- ./nodejs-server/package.json:/opt/package.json
- ./nodejs-server/package-lock.json:/opt/package-lock.json
- notused-server:/opt/app/node_modules
networks:
- regisgen
nodejs-web-client:
build:
context: ./nodejs-web-client
dockerfile: Dockerfile
depends_on:
- nodejs-server
ports:
- "80:80"
- "9229:9229"
expose:
- "80"
volumes:
- ./nodejs-web-client:/opt/app:delegated
- ./nodejs-web-client/package.json:/opt/package.json
- ./nodejs-web-client/package-lock.json:/opt/package-lock.json
- notused-web-client:/opt/app/node_modules
networks:
- regisgen
volumes:
db_data:
notused-server:
notused-web-client:
networks:
regisgen:
driver: bridge