From 6c9751747b00bdfe9bde577a19e9ce1f996b9c7f Mon Sep 17 00:00:00 2001 From: Nicholas Long Date: Wed, 18 Oct 2023 10:27:22 -0600 Subject: [PATCH] fix restart and secret key --- docker-compose.prod.yml | 2 ++ docker/README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index d618cf1..c84dbec 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -23,6 +23,7 @@ services: volumes: - buildingsync_pgdata:/var/lib/postgresql/data - $HOME/buildingsync-website-backups:/backups + restart: unless-stopped deploy: restart_policy: condition: on-failure @@ -47,6 +48,7 @@ services: - "8082:80" volumes: - buildingsync_media:/srv/buildingsync-website/bsyncviewer/media + restart: unless-stopped deploy: restart_policy: condition: on-failure diff --git a/docker/README.md b/docker/README.md index c8e0cbc..1ef4cbb 100644 --- a/docker/README.md +++ b/docker/README.md @@ -27,7 +27,7 @@ below on production, only for testing locally. export BUILDINGSYNC_WEBSITE_ADMIN_USER=admin export BUILDINGSYNC_WEBSITE_ADMIN_PASSWORD=super-secret-password export BUILDINGSYNC_WEBSITE_ADMIN_EMAIL=admin@buildingsync.net - export SECRET_KEY=Super-Long-Secret-Key-From-Step-Above + export SECRET_KEY="Super-Long-Secret-Key-From-Step-Above" ``` - Build the containers and Deploy