Skip to content

Commit

Permalink
Merge pull request #10 from pvcy/jc/cleanup
Browse files Browse the repository at this point in the history
Cleanup env vars
  • Loading branch information
john-craft authored Oct 24, 2023
2 parents bce781c + e371aa4 commit 0a97fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
DB_PASSWORD: ${DB_PASSWORD:-dMVZFeBWLOzYRV71} #It is strongly recommended to provide DB_PASSWORD in the environment rather than use this default.
POSTGRES_DB: "postgres"
DB_HOST: "users-db"
LOAD_DATA: "False"
LOAD_DATA: "True"
ports:
- 8080:8080
depends_on:
Expand All @@ -33,6 +33,6 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD:-dMVZFeBWLOzYRV71}
POSTGRES_DB: "postgres"
DB_BACKUP_URL: "https://storage.googleapis.com/anonymize-db-backups/us-west1/backup.sql"
RESTORE_FROM_BACKUP: "True"
RESTORE_FROM_BACKUP: "False"
ports:
- 5432:5432
4 changes: 3 additions & 1 deletion users-api/src/config/config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
require('dotenv').config();

module.exports = {
development: {
username: process.env.DB_USERNAME,
password: process.env.POSTGRES_PASSWORD,
database: process.env.POSTGRES_DB,
host: 'localhost', // process.env.DB_HOST ||
host: process.env.DB_HOST || 'localhost',
dialect: 'postgres',
},
};

0 comments on commit 0a97fa8

Please sign in to comment.