Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
code
Public Stack Site
Commits
82e46c97
Commit
82e46c97
authored
Aug 03, 2020
by
alain
🐙
Browse files
docker persistence setup & sh scripts
parent
d8b777f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
82e46c97
...
...
@@ -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"]
build.sh
0 → 100755
View file @
82e46c97
docker build
-t
waag/public-stack-site .
\ No newline at end of file
down.sh
0 → 100755
View file @
82e46c97
# 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
up.sh
0 → 100755
View file @
82e46c97
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment