Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
slarp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Desplanque
slarp
Commits
020776e5
Commit
020776e5
authored
Nov 20, 2018
by
Paul Desplanque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mount web_static_* volumes while starting
parent
b457d2e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
start
start
+7
-0
No files found.
start
View file @
020776e5
...
...
@@ -30,6 +30,12 @@ echo APACHE_LOGS_DIR="$APACHE_LOGS_DIR" >> "$APP_VARFILE"
echo
CERTBOT_LOGS_DIR
=
"
$CERTBOT_LOGS_DIR
"
>>
"
$APP_VARFILE
"
echo
STATIC_DIR
=
"
$STATIC_DIR
"
>>
"
$APP_VARFILE
"
volumes
=(
$(
docker volume
ls
-q
|
grep
^web_static_ |
cut
-d_
-f3
)
)
mountCommand
=
''
for
name
in
${
volumes
[@]
}
;
do
mountCommand
=
"
$mountCommand
-v web_static_
$name
:/var/www/static_
$name
:ro"
done
docker run
-d
--restart
on-failure
\
--name
$APP_NAME
\
-e
CONTAINER_NAME
=
$APP_NAME
\
...
...
@@ -38,6 +44,7 @@ docker run -d --restart on-failure \
-v
"
$APACHE_LOGS_DIR
"
:/var/log/apache2
\
-v
"
$CERTBOT_LOGS_DIR
"
:/var/log/letsencrypt
\
-v
"
$STATIC_DIR
"
:/var/www/static:ro
\
$mountCommand
\
-p
80:80
-p
443:443
\
$APP_NAME
:latest bash
-c
\
"cron &&
...
...
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