Skip to content

Commit

Permalink
Merge pull request #106 from project-lovelace/ali/acme-volume
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan authored Mar 28, 2021
2 parents 06cc7bc + 6be64d5 commit 7ba5b65
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
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

0 comments on commit 7ba5b65

Please sign in to comment.