GRN2-162: Revert to sqlite in docker compose (#594)

* Revert to sqlite

* Missed uncomenting sqlite volume

* Update sample.env
This commit is contained in:
shawn-higgins1
2019-06-28 16:40:19 -04:00
committed by Jesus Federico
parent 98f7afb9a1
commit e153528fcc
2 changed files with 22 additions and 23 deletions

View File

@ -8,7 +8,7 @@ services:
env_file: .env
restart: unless-stopped
ports:
- 5000:80
- 127.0.0.1:5000:80
# When using external logging
# logging:
# driver: $LOG_DRIVER
@ -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:
- 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