up.sh 548 Bytes
Newer Older
alain's avatar
alain committed
1
2
3
4
# strapi & gatsby container
docker run \
--name public-stack-site-src \
-p 1337:1337 \
alain's avatar
alain committed
5
-v "$(pwd)"/backend/.env:/usr/src/public-stack-site/backend/.env \
alain's avatar
alain committed
6
7
8
9
10
11
12
13
14
15
16
-v "$(pwd)"/backend/.tmp:/usr/src/public-stack-site/backend/.tmp \
-v "$(pwd)"/backend/public/uploads:/usr/src/public-stack-site/backend/public/uploads \
-v public-stack-site-volume:/usr/src/public-stack-site/frontend/public \
-d waag/public-stack-site

# nginx container
docker run \
--name public-stack-site-nginx \
-p 8080:80 \
-v public-stack-site-volume:/usr/share/nginx/html:ro \
-d nginx