forked from External/greenlight
Add settings for postgres
This commit is contained in:
parent
98395328b2
commit
e1fc628202
|
@ -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
|
||||
|
|
11
sample.env
11
sample.env
|
@ -79,7 +79,7 @@ LDAP_PASSWORD=
|
|||
ALLOW_GREENLIGHT_ACCOUNTS=true
|
||||
|
||||
# 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
|
||||
#
|
||||
|
@ -176,3 +176,12 @@ ENABLE_GOOGLE_CALENDAR_BUTTON=
|
|||
# Force SSL
|
||||
#
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue