forked from External/greenlight
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:
@ -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
|
||||
|
Reference in New Issue
Block a user