GRN2-164: Switched the default database to Postgres (#952)

* Switched the default database to Postgres

* Uncomment DB variables in sample.env
This commit is contained in:
Ahmad Farhat
2020-02-18 15:22:51 -05:00
committed by GitHub
parent 005c738e4d
commit feccee7d62
6 changed files with 25 additions and 20 deletions

View File

@ -18,19 +18,19 @@ services:
volumes:
- ./log:/usr/src/app/log
# When using sqlite3 as the database
- ./db/production:/usr/src/app/db/production
# - ./db/production:/usr/src/app/db/production
# When using postgresql as the database
# links:
# - db
# db:
# image: postgres:9.5
# restart: on-failure
# ports:
# - 127.0.0.1:5432:5432
# volumes:
# - ./db/production:/var/lib/postgresql/data
# environment:
# - PGHOST=postgres
# - PGDATABASE=postgres
# - PGUSER=postgres
# - PGPASSWORD=password
links:
- db
db:
image: postgres:9.5
restart: on-failure
ports:
- 127.0.0.1:5432:5432
volumes:
- ./db/production:/var/lib/postgresql/data
environment:
- PGHOST=postgres
- PGDATABASE=postgres
- PGUSER=postgres
- PGPASSWORD=password