Skip to content

Commit

Permalink
Safe add remote db config (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh867 authored Sep 10, 2019
1 parent cbe193f commit 8dad56f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
5 changes: 5 additions & 0 deletions prisma/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PRISMA_MANAGEMENT_API_SECRET=
PRISMA_SECRET=
DB_HOST=
DB_USER=
DB_PASSWORD=
18 changes: 4 additions & 14 deletions prisma/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,12 @@ services:
environment:
PRISMA_CONFIG: |
port: 4466
managementApiSecret: test_api_key
managementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET}
databases:
default:
connector: postgres
host: postgres
user: prisma
password: prisma
host: ${DB_HOST}
user: ${DB_USER}
password: ${DB_PASSWORD}
port: 5432
migrations: true
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: ~

0 comments on commit 8dad56f

Please sign in to comment.