fix: move hardcoded DB password to env variable
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
ROOT_ADMIN_EMAIL=""
|
ROOT_ADMIN_EMAIL=""
|
||||||
|
|
||||||
|
# Docker Compose database password (used in docker-compose.yml)
|
||||||
|
DB_PASSWORD=""
|
||||||
|
|
||||||
DATABASE_URL="postgres://user:password@host:port/db-name"
|
DATABASE_URL="postgres://user:password@host:port/db-name"
|
||||||
|
|
||||||
ORIGIN=""
|
ORIGIN=""
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: vash
|
POSTGRES_DB: vash
|
||||||
POSTGRES_USER: vash
|
POSTGRES_USER: vash
|
||||||
POSTGRES_PASSWORD: ***REMOVED***
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
@@ -27,7 +27,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '127.0.0.1:3000:3000' # Only accessible from host (nginx proxies)
|
- '127.0.0.1:3000:3000' # Only accessible from host (nginx proxies)
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://vash:***REMOVED***@db:5432/vash
|
DATABASE_URL: postgresql://vash:${DB_PASSWORD}@db:5432/vash
|
||||||
ORIGIN: ${ORIGIN:-https://esports.vash.software}
|
ORIGIN: ${ORIGIN:-https://esports.vash.software}
|
||||||
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
||||||
OSU_CLIENT_ID: ${OSU_CLIENT_ID}
|
OSU_CLIENT_ID: ${OSU_CLIENT_ID}
|
||||||
|
|||||||
Reference in New Issue
Block a user