forked from temidosu/DB-GUI-Thurs-Group-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·49 lines (46 loc) · 1.33 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
version: "3.3"
services:
backend-api:
# location of docker file for node container
build: ./backend
# restart on crashes
restart: always
# working directory in container to place files
working_dir: /usr/src/app
# startup command
command: bash -c "yarn run dev"
# map code volumes from local to inside working directory, changes made locally will update into the container
volumes:
- ./backend:/usr/src/app
# ports to map, YOU CANNOT RUN ANYTHING ELSE ON PORT 8000
ports:
- 8000:8000
# shared network
networks:
- api
frontend-app:
# option to allow Create React App run with tty requirement
stdin_open: true
# location of docker file for node container
build: ./frontend
# restart on crashes
restart: always
# working directory in container to place files
working_dir: /usr/src/app
# startup command
command: bash -c "yarn start"
# map code volumes from local to inside working directory, changes made locally will update into the container
volumes:
- ./frontend:/usr/src/app
# specify dependency on mysql db
depends_on:
- backend-api
# ports to map, YOU CANNOT RUN ANYTHING ELSE ON PORT 3000
ports:
- 3000:3000
# shared network
networks:
- api
# specify networks
networks:
api: