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: