Skip to content

Commit

Permalink
Add settings for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico committed May 24, 2019
1 parent 9839532 commit e1fc628
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 10 additions & 1 deletion sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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

0 comments on commit e1fc628

Please sign in to comment.