Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit b0d2fcb

Browse files
author
Vishal Dodiya
committed
add letsencrypt support in script
1 parent 052e011 commit b0d2fcb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎scripts/ee4‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ singleWordPress() {
6060
###
6161
echo "Configuring network..." && sleep 1
6262
runNginxProxy
63+
runLetsEncrypt
6364
docker network create $SITE_NAME
6465
docker network connect $SITE_NAME nginx-proxy
6566

@@ -175,11 +176,23 @@ runNginxProxy() {
175176
-v /etc/nginx/certs:/etc/nginx/certs \
176177
-v /etc/nginx/conf.d:/etc/nginx/conf.d \
177178
-v /var/run/docker.sock:/tmp/docker.sock:ro \
179+
--network $SITE_NAME \
178180
jwilder/nginx-proxy
179181
fi
180182
fi
181183
}
182184

185+
# run JrCs/docker-letsencrypt-nginx-proxy-companion container
186+
runLetsEncrypt() {
187+
if isNginxProxyRunning; then
188+
docker run -d --name letsencrypt \
189+
-v /var/run/docker.sock:/var/run/docker.sock:ro \
190+
--volume-from nginx-proxy \
191+
--network $SITE_NAME \
192+
jrcs/letsencrypt-nginx-proxy-companion
193+
fi
194+
}
195+
183196
# fail_trap is executed if an error occurs.
184197
fail_trap() {
185198
result=$?

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /