From e418684095030b9716eadc145e64f14270a46068 Mon Sep 17 00:00:00 2001 From: mdebic Date: Thu, 31 Oct 2024 22:00:40 +0100 Subject: [PATCH] Store and mount CAs and certificates via /etc/ssl --- compose/docker-compose.base.yml | 1 + compose/docker-compose.prod.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compose/docker-compose.base.yml b/compose/docker-compose.base.yml index fa172258..2424b920 100644 --- a/compose/docker-compose.base.yml +++ b/compose/docker-compose.base.yml @@ -41,6 +41,7 @@ services: - web_data:/var/www/web - ../backups:/backups - /mnt:/mnt + - /etc/ssl:/etc/ssl postgres: image: postgres:17 diff --git a/compose/docker-compose.prod.yml b/compose/docker-compose.prod.yml index 3eda9b00..81b341b4 100644 --- a/compose/docker-compose.prod.yml +++ b/compose/docker-compose.prod.yml @@ -43,7 +43,7 @@ services: bash -c " wait-for-it -s init.local:8000 -t 300 && echo 'Starting web server ...' - daphne -b 0.0.0.0 -p 80 -e ssl:443:privateKey=/var/www/web/ssl/key.pem:certKey=/var/www/web/ssl/cert.pem adit.asgi:application + daphne -b 0.0.0.0 -p 80 -e ssl:443:privateKey=/etc/ssl/private/key.pem:certKey=/etc/ssl/private/cert.pem adit.asgi:application " deploy: <<: *deploy