Move Rails secrets into Docker secrets
This commit is contained in:
+21
-2
@@ -24,8 +24,8 @@ x-environment: &default-env
|
||||
MAX_THREADS: ${MAX_THREADS}
|
||||
FORCE_SSL: ${FORCE_SSL}
|
||||
USE_RACK_ATTACK: ${USE_RACK_ATTACK}
|
||||
DEVISE_SECRET: uuaYZNGgeKCMqGc5pPd3seNSrvKkVO9+pAu6JvrQI4M6T395m8dLJja5qza8HaHY
|
||||
SECRET_COOKIE_TOKEN: uuaYZNGgeKCMqGc5pPd3seNSrvKkVO9+pAu6JvrQI4M6T395m8dLJja5qza8HaHY
|
||||
DEVISE_SECRET_FILE: /run/secrets/devise_secret
|
||||
SECRET_COOKIE_TOKEN_FILE: /run/secrets/secret_cookie_token
|
||||
SAML_APP_KEY:
|
||||
SAML_IDP_METADATA_URL:
|
||||
SAML_ISSUER:
|
||||
@@ -39,6 +39,9 @@ services:
|
||||
target: /entrypoint.sh
|
||||
mode: 0555
|
||||
entrypoint: /entrypoint.sh
|
||||
secrets:
|
||||
- devise_secret
|
||||
- secret_cookie_token
|
||||
volumes:
|
||||
- loomio_uploads:/loomio/public/system
|
||||
- loomio_storage:/loomio/storage
|
||||
@@ -64,6 +67,14 @@ services:
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+v2.7.10"
|
||||
worker:
|
||||
image: loomio/loomio:v2.11.13
|
||||
configs:
|
||||
- source: entrypoint
|
||||
target: /entrypoint.sh
|
||||
mode: 0555
|
||||
entrypoint: /entrypoint.sh
|
||||
secrets:
|
||||
- devise_secret
|
||||
- secret_cookie_token
|
||||
networks:
|
||||
- backend
|
||||
environment:
|
||||
@@ -148,3 +159,11 @@ configs:
|
||||
entrypoint:
|
||||
name: ${STACK_NAME}_entrypoint_${LOOMIO_ENTRYPOINT_VERSION}
|
||||
file: entrypoint.sh
|
||||
|
||||
secrets:
|
||||
devise_secret:
|
||||
external: true
|
||||
name: ${STACK_NAME}_devise_secret_${SECRET_DEVISE_SECRET_VERSION}
|
||||
secret_cookie_token:
|
||||
external: true
|
||||
name: ${STACK_NAME}_secret_cookie_token_${SECRET_SECRET_COOKIE_TOKEN_VERSION}
|
||||
|
||||
Reference in New Issue
Block a user