Add settings for postgres

This commit is contained in:
jfederico
2019-05-24 15:53:40 +00:00
parent 98395328b2
commit e1fc628202
2 changed files with 30 additions and 1 deletions

View File

@ -9,11 +9,31 @@ services:
restart: unless-stopped
ports:
- 5000:80
# When using sqlite3 as the database
volumes:
- ./db/production:/usr/src/app/db/production
- ./log:/usr/src/app/log
# When using external logging
# logging:
# driver: $LOG_DRIVER
# options:
# syslog-address: $LOG_ADDRESS
# tag: $LOG_TAG
# When using postgresql as the database
# links:
# - db
#
# db:
# image: postgres:9.5
# restart: on-failure
# ports:
# - 5432:5432
# volumes:
# - database_data:/var/lib/postgresql/data
# environment:
# - PGHOST=postgres
# - PGDATABASE=postgres
# - PGUSER=postgres
# - PGPASSWORD=password