-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
executable file
·23 lines (21 loc) · 976 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
docker build backend --tag ckl_backend
docker build nginx --tag ckl_nginx
docker build frontend --tag ckl_frontend
mkdir -p backend/src/media
mkdir -p backend/src/static
# Create docker network
docker network create backend-net
# Start containers
docker run -d --network=backend-net \
--network-alias=backend \
-v /home/turner/Documents/ckl/bruno-marques-fullstack/backend/src/static:/usr/src/app/src/static \
-v /home/turner/Documents/ckl/bruno-marques-fullstack/backend/src/media:/usr/src/app/src/media \
ckl_backend
docker run -d --network=backend-net \
--network-alias=nginx \
-p 8080:8080 \
-v /home/turner/Documents/ckl/bruno-marques-fullstack/backend/src/static:/usr/src/app/src/static \
-v /home/turner/Documents/ckl/bruno-marques-fullstack/backend/src/media:/usr/src/app/src/media \
ckl_nginx
docker run -d -p 80:80 ckl_frontend