-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (44 loc) · 1.08 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
version: '3.4'
services:
frontend:
build:
context: ./react-redux-ifgfseattle
args:
user: samuelkitono
image: keyclipse/react-redux-ifgfseattle # goes to youruser DockerHub registry
user: samuelkitono
ports:
- '3000:3000'
- '3001:3001'
volumes:
- ./react-redux-ifgfseattle:/react-redux-ifgfseattle
- /react-redux-ifgfseattle/node_modules
command: yarn run dev
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "examplepassword"
MYSQL_DATABASE: "database_ifgf_development"
ports:
- '3306:3306'
volumes:
- mysql:/var/lib/mysql
backend:
build:
context: ./ifgf-backend
args:
user: samuelkitono
image: keyclipse/ifgf-backend # goes to youruser DockerHub registry
user: samuelkitono
ports:
- '3030:3030'
volumes:
- ./ifgf-backend:/ifgf-backend
- /ifgf-backend/node_modules
depends_on:
- "mysql"
# env_file:
# - ./ifgf-backend/.ifgf_backend.env
command: "yarn dev"
volumes:
mysql: