Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ACME volume for nginx-proxy-letsencrypt container #106

Merged
merged 2 commits into from
Mar 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
version: '3.8'

services:
nginx-proxy-letsencrypt:
Expand All @@ -10,6 +10,7 @@ services:
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- acme:/etc/acme.sh
depends_on:
- nginx-proxy

Expand Down Expand Up @@ -68,3 +69,4 @@ volumes:
certs:
html:
vhost:
acme:
4 changes: 3 additions & 1 deletion docker-compose.staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
version: '3.8'

services:
nginx-proxy-letsencrypt:
Expand All @@ -10,6 +10,7 @@ services:
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- acme:/etc/acme.sh
depends_on:
- nginx-proxy

Expand Down Expand Up @@ -68,3 +69,4 @@ volumes:
certs:
html:
vhost:
acme:
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
version: '3.8'

services:
django:
Expand Down
10 changes: 5 additions & 5 deletions update_production.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

git pull
docker pull projectlovelace/lovelace-engine
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml down
docker-compose -f docker-compose.prod.yml up --detach
git pull && \
docker pull projectlovelace/lovelace-engine && \
docker-compose -f docker-compose.prod.yml build && \
docker-compose -f docker-compose.prod.yml down && \
docker-compose -f docker-compose.prod.yml up --detach && \
docker-compose -f docker-compose.prod.yml exec django python manage.py collectstatic --no-input