Split OAuth compose file

This commit is contained in:
3wc
2020-09-25 12:19:07 +02:00
parent 27b35f059a
commit d422ef3316
3 changed files with 23 additions and 12 deletions

View File

@ -23,14 +23,7 @@ services:
- CMD_DB_USER=codimd
- CMD_DB_HOST=postgres
- CMD_DB_PASSWORD_FILE=/run/secrets/db_password
- CMD_OAUTH2_PROVIDERNAME
- CMD_OAUTH2_BASEURL
- CMD_OAUTH2_CLIENT_ID
- CMD_OAUTH2_CLIENT_SECRET_FILE=/run/secrets/oauth_key
- CMD_OAUTH2_AUTHORIZATION_URL
- CMD_OAUTH2_TOKEN_URL
- CMD_OAUTH2_USER_PROFILE_URL
- CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR
- CMD_EMAIL # Email login enabled?
depends_on:
- postgres
networks:
@ -40,7 +33,6 @@ services:
- codimd_uploads:/home/hackmd/app/public/uploads
secrets:
- db_password
- oauth_key
entrypoint: /docker-entrypoint2.sh
configs:
- source: entrypoint2_conf
@ -72,9 +64,6 @@ secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${DB_PASSWORD_VERSION}
oauth_key:
external: true
name: ${STACK_NAME}_oauth_key_${OAUTH_KEY_VERSION}
networks:
proxy: