-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
61 lines (61 loc) · 1.24 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"
services:
mysqlDB:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./DB:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: pavan
MYSQL_DATABASE: shoppy
MYSQL_PASSWORD: pavan
nginx:
restart: always
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- "3080:80"
depends_on:
- nodeserver
- pythonserver
- client
nodeserver:
restart: always
build:
dockerfile: Dockerfile.dev
context: ./server/node_server
volumes:
- /app/node_modules
- ./server/node_server:/app
environment:
- PORT=4000
- DB_HOST=mysqlDB
- DB_PWD=pavan
- DB_NAME=shoppy
ports:
- "4000:4000"
depends_on:
- mysqlDB
pythonserver:
restart: always
build:
dockerfile: Dockerfile.dev
context: ./server/python_server
volumes:
- /app/
- ./server/python_server:/app
ports:
- "8000:8000"
depends_on:
- mysqlDB
client:
build:
dockerfile: Dockerfile.dev
context: ./client
volumes:
- /app/node_modules
- ./client:/app
ports:
- "3000:3000"