-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 962 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
version: '3.7'
services:
client:
stdin_open: true
container_name: client
build: ./client
command: yarn start
ports:
- 3000:3000
volumes:
- './client:/usr/src/client'
- '/usr/src/client/node_modules'
environment:
- CHOKIDAR_USEPOLLING=true
server:
build:
context: ./
dockerfile: ./server/Dockerfile
command: python app.py
ports:
- 5000:5000
env_file:
- ./server/.env
environment:
- PORT=5000
container_name: cradle
volumes:
- ./server:/usr/src/server
- ./client:/usr/src/client
depends_on:
- db
db:
image: mysql:5.7
volumes:
- mysql_data:/var/lib/mysql
ports:
- 3307:3306
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
container_name: mysql
volumes:
mysql_data: