Merge pull request #3265 from sevenpastnine/develop

Add missing PostgreSQL variables to the docker-compose.production.yml
This commit is contained in:
Miha Mencin 2021-04-29 09:01:27 +02:00 committed by GitHub
commit b00f3972fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -5,7 +5,7 @@ PAPERCLIP_HASH_SECRET=$(shell openssl rand -base64 128 | tr -d '\n')
define PRODUCTION_CONFIG_BODY
SECRET_KEY_BASE=$(shell openssl rand -hex 64)
PAPERCLIP_HASH_SECRET=$(shell openssl rand -base64 128 | tr -d '\n')
DATABASE_URL=postgresql://postgres@db/scinote_production
DATABASE_URL=postgresql://postgres:mysecretpassword@db/scinote_production
PAPERCLIP_STORAGE=filesystem
ENABLE_RECAPTCHA=false
ENABLE_USER_CONFIRMATION=false

View file

@ -5,6 +5,11 @@ services:
image: postgres:11
volumes:
- scinote_production_postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=mysecretpassword"
web:
build: