-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (53 loc) · 1.13 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
63 lines (53 loc) · 1.13 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
54
55
56
57
58
59
60
61
62
63
services:
client:
build: ./client
image: mohmeek/client
container_name: client
ports:
- "4200:80"
webapi:
build: ./javaapi
image: mohmeek/javaapi
container_name: webapi
ports:
- "9000:8080"
depends_on:
- emartdb
api:
build: ./nodeapi
image: mohmeek/nodeapi
container_name: api
ports:
- "5000:5000"
depends_on:
- emongo
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- client
- webapi
- api
emongo:
image: mongo:4
container_name: emongo
ports:
- "27017:27017"
environment:
- MONGO_INITDB_DATABASE=epoc
emartdb:
image: mysql:5.7.25
container_name: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=emartdbpass
- MYSQL_DATABASE=books
volumes:
- ./mysql_data:/var/lib/mysql
volumes:
mysql_data: