Commit 82e46c97 authored by alain's avatar alain 🐙
Browse files

docker persistence setup & sh scripts

parent d8b777f8
......@@ -16,8 +16,6 @@ RUN yarn install
# backend
WORKDIR /usr/src/public-stack-site/backend
COPY backend/.tmp .tmp
RUN yarn install && yarn build
CMD ["yarn", "develop"]
docker build -t waag/public-stack-site .
\ No newline at end of file
# strapi & gatsby container
docker stop public-stack-site-src
docker rm public-stack-site-src
# nginx container
docker stop public-stack-site-nginx
docker rm public-stack-site-nginx
\ No newline at end of file
# strapi & gatsby container
docker run \
--name public-stack-site-src \
-p 1337:1337 \
-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
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment