From 966f40d591d6fc95068fc22c5b283b9ab54c3d8e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 20 Mar 2020 18:12:57 +0100 Subject: Added Dockerfile, images: python3.8-alpine and postgres. --- instance/production.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'instance') diff --git a/instance/production.py b/instance/production.py index d57520b8..d0aebd7e 100644 --- a/instance/production.py +++ b/instance/production.py @@ -5,7 +5,7 @@ import os # # Webserver -HOST = "127.0.0.1" +HOST = "0.0.0.0" PORT = 5000 DEBUG = False API_ROOT = "/api/v2.0" @@ -16,12 +16,12 @@ SECURITY_PASSWORD_SALT = "L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD" # Database DB_CONFIG_DICT = { - "user": "user", + "user": "postgres", "password": "password", - "host": "localhost", + "host": "db", "port": 5432, } -DATABASE_NAME = "newspipe" +DATABASE_NAME = "postgres" SQLALCHEMY_DATABASE_URI = "postgres://{user}:{password}@{host}:{port}/{name}".format( name=DATABASE_NAME, **DB_CONFIG_DICT ) -- cgit