From 6cdadc45d09fb09390a10b3b5ff216363368d2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Wed, 11 Jan 2023 11:25:57 +0100 Subject: [PATCH] snibox: set secret_key_base --- snibox.env | 1 + snibox.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 snibox.env diff --git a/snibox.env b/snibox.env new file mode 100644 index 0000000..9b3c1b4 --- /dev/null +++ b/snibox.env @@ -0,0 +1 @@ +SNIBOX_SECRET_KEY_BASE=sMHYqzrgJQgPynv6ZDG7M8ZpF \ No newline at end of file diff --git a/snibox.yml b/snibox.yml index 6b3a921..f7f84b5 100644 --- a/snibox.yml +++ b/snibox.yml @@ -12,7 +12,10 @@ services: backend: image: snibox/snibox:latest + container_name: snibox command: sh -c "rm -rf tmp/pids && ./bin/rails s -p 3000 -b '0.0.0.0'" + env_file: + - snibox.env environment: DB_NAME: "${SNIBOX_POSTGRES_DB_NAME}" DB_USER: "${POSTGRES_USERNAME}" @@ -27,7 +30,7 @@ services: MAILGUN_API_KEY: "${MAILGUN_API_KEY}" MAILGUN_DOMAIN: "${MAILGUN_DOMAIN}" MAILGUN_PUBLIC_KEY: "${MAILGUN_PUBLIC_KEY}" - SECRET_KEY_BASE: "${SECRET_KEY_BASE}" + SECRET_KEY_BASE: "${SNIBOX_SECRET_KEY_BASE}" # ports: # - "${SNIBOX_EXTERNAL_PORT}:${SNIBOX_INTERNAL_PORT}" volumes: