-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathscripts.sh
30 lines (16 loc) · 1.01 KB
/
scripts.sh
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
# -------------------------- Server Dev -------------------------- #
docker build --rm -t re-server-dev -f ./server/Dockerfile.dev ./server
docker run -it -p 5000:5000 -v ${PWD}/server/src:/server/src re-server-dev
# -------------------------- Client Dev -------------------------- #
docker build --rm -t re-client-dev -f ./client/Dockerfile.dev ./client
docker run -it -p 3000:3000 -v ${PWD}/client/src:/client/src re-client-dev
# -------------------------- Docker compose Dev -------------------------- #
docker-compose -f docker-compose.dev.yml up --build
# -------------------------- Server Prod -------------------------- #
docker build --rm -t re-server-prod -f ./server/Dockerfile ./server
docker run -it -p 5000:5000 re-server-prod
# -------------------------- Client Prod -------------------------- #
docker build --rm -t re-client-prod -f ./client/Dockerfile ./client
docker run -it -p 3000:3000 re-client-prod
# -------------------------- Docker compose Prod -------------------------- #
docker-compose up --build