-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
56 lines (52 loc) · 1.23 KB
/
docker-compose-dev.yml
File metadata and controls
56 lines (52 loc) · 1.23 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
version: "3"
services:
client:
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- ./client:/app
- /app/node_modules
ports:
- "3000:3000"
environment:
- CHOKIDAR_USEPOLLING=true
nginx:
restart: always
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
- "4000:80"
depends_on:
- client
- api
api:
build:
context: ./server
dockerfile: Dockerfile.dev
volumes:
- ./server:/usr/src/app
- /usr/src/app/node_modules
ports:
- "5000:5000"
environment:
- CHOKIDAR_USEPOLLING=true
- MYSQLUSER=root
- MYSQLHOST=database
- MYSQLDATABASE=mydb
- MYSQLPASSWORD=password
- MYSQLPORT=3306
depends_on:
- database
database:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=mydb
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
volumes:
db-data: