Wire runtime secrets in compose
This commit is contained in:
@@ -12,11 +12,14 @@ services:
|
||||
- DB_USER=${DB_USER:-root}
|
||||
- DB_PASSWORD=${DB_PASSWORD:-root_password}
|
||||
- DB_NAME=${DB_NAME:-agenciac_comia}
|
||||
- JWT_SECRET=${JWT_SECRET:-fasto_local_dev_secret}
|
||||
- CORS_ORIGIN=${CORS_ORIGIN:-http://localhost:3001}
|
||||
- SMTP_HOST=${SMTP_HOST}
|
||||
- SMTP_PORT=${SMTP_PORT}
|
||||
- SMTP_USER=${SMTP_USER}
|
||||
- SMTP_PASS=${SMTP_PASS}
|
||||
- MAIL_FROM=${MAIL_FROM}
|
||||
- SMTP_DEBUG=${SMTP_DEBUG:-false}
|
||||
volumes:
|
||||
- ./dist:/app/dist # Map local build to container
|
||||
- ./backend/index.js:/app/index.js
|
||||
|
||||
@@ -17,6 +17,8 @@ services:
|
||||
- MAIL_FROM=${MAIL_FROM}
|
||||
- APP_URL=${APP_URL}
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
- CORS_ORIGIN=${CORS_ORIGIN}
|
||||
- SMTP_DEBUG=${SMTP_DEBUG:-false}
|
||||
ports:
|
||||
- "3001:3001"
|
||||
deploy:
|
||||
|
||||
Reference in New Issue
Block a user