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 restart: unless-stopped
ports: ports:
- 5000:80 - 5000:80
# When using sqlite3 as the database
volumes: volumes:
- ./db/production:/usr/src/app/db/production - ./db/production:/usr/src/app/db/production
- ./log:/usr/src/app/log - ./log:/usr/src/app/log
# When using external logging
# logging: # logging:
# driver: $LOG_DRIVER # driver: $LOG_DRIVER
# options: # options:
# syslog-address: $LOG_ADDRESS # syslog-address: $LOG_ADDRESS
# tag: $LOG_TAG # 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

View File

@ -79,7 +79,7 @@ LDAP_PASSWORD=
ALLOW_GREENLIGHT_ACCOUNTS=true ALLOW_GREENLIGHT_ACCOUNTS=true
# To enable reCaptcha on the user sign up, define these 2 keys # To enable reCaptcha on the user sign up, define these 2 keys
# You can obtain these keys by registering your domain using the following url: # You can obtain these keys by registering your domain using the following url:
# #
# https://www.google.com/recaptcha/admin # https://www.google.com/recaptcha/admin
# #
@ -176,3 +176,12 @@ ENABLE_GOOGLE_CALENDAR_BUTTON=
# Force SSL # Force SSL
# #
# ENABLE_SSL=true # ENABLE_SSL=true
# Database settings
# Greenlight works out of the box with sqlite3, but if postgresql is required, especially for production
# These variables should also be included.
# DB_ADAPTER=postgresql
# DB_HOST=postgres.example.com
# DB_NAME=greenlight_production
# DB_USERNAME=postgres
# DB_PASSWORD=password