Move password related env variables to docker compose .env file
This commit is contained in:
parent
2068dfd1af
commit
5e69a5f31e
4
.env
4
.env
|
@ -1,5 +1,7 @@
|
|||
COMPOSE_FILE=docker-compose.dev.yml
|
||||
COMPOSE_PROJECT_NAME=candymat
|
||||
|
||||
#Postgraphile vars
|
||||
# Backend vars
|
||||
POSTGRES_PASSWORD=postgres!dev
|
||||
DATABASE_URL=postgres://candymat_postgraphile:postgres!dev@postgres:5432/candymat_db
|
||||
JWT_SECRET=asdfasdfasdf
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# Postgres database setup
|
||||
POSTGRES_PASSWORD=postgres!dev
|
||||
POSTGRES_USER=candymat_postgraphile
|
||||
# Password is handled by docker-compose
|
||||
POSTGRES_DB=candymat_db
|
||||
POSTGRES_SCHEMA=candymat_data
|
||||
|
||||
# postgraphile setup
|
||||
JWT_SECRET=asdfasdfasdf
|
||||
|
|
|
@ -28,6 +28,8 @@ services:
|
|||
build:
|
||||
dockerfile: ./Dockerfile
|
||||
context: ./backend/
|
||||
environment:
|
||||
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
||||
env_file: ./backend/backend.env
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
|
Loading…
Reference in a new issue