Skip to content

Commit

Permalink
docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
biodiv committed Jan 27, 2020
1 parent 472a3e7 commit 5dfd41c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# - based on ubuntu 18.04
# - python3.6, postgresql and nginx webserver
# - django, uwsgi
# - required parameters: database_user, database_user_password, app_uid
############################################################

# Set the base image to Ubuntu
Expand All @@ -12,9 +11,6 @@ ENV UBUNTU_NAME=bionic

MAINTAINER Thomas Uher <thomas.uher@sisol-systems.com>

ARG APP_UID
ARG SERVE_APP_URL

ENV PYTHONUNBUFFERED 1

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# the following environment variables are used in this script:
# $DATABASE_NAME, $DB_USER, $DB_PASSWORD, $SERVE_APP_URL, $APP_UID
# $ALLOWED_HOST, $DATABASE_NAME, $DB_USER and $DB_PASSWORD are used by settings.py (os.environ[])

# start postgresql
/etc/init.d/postgresql start
Expand Down
2 changes: 1 addition & 1 deletion docker/localcosmos_private/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'localcosmos',
'NAME': os.environ['DATABASE_NAME'],
'USER' : os.environ['DB_USER'],
'PASSWORD' : os.environ['DB_PASSWORD'],
'HOST' : 'localhost',
Expand Down

0 comments on commit 5dfd41c

Please sign in to comment.