Skip to content

Commit

Permalink
Adding missing envvars for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alextreme committed Jul 24, 2023
1 parent 263ae7a commit c74262b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
# NOTE: No persistance storage configured.
# See: https://hub.docker.com/_/postgres/
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
# NOTE: this works for bitnami, not sure if this works for regular
# postgres image
volumes:
Expand All @@ -15,6 +17,12 @@ services:
build: .
environment:
- DJANGO_SETTINGS_MODULE=openklant.conf.docker
- IS_HTTPS=no
- DB_NAME=openklant
- DB_USER=openklant
- ALLOWED_HOSTS=*
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- SECRET_KEY=${SECRET_KEY:-django-insecure-$8s@b*ds4t84-q_2#c0j0506@!l2q6r5_pq5e!vm^_9c*#^66b}
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
Expand Down
6 changes: 3 additions & 3 deletions docker-init-db.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE USER {{ project_name|lower }};
CREATE DATABASE {{ project_name|lower }};
GRANT ALL PRIVILEGES ON DATABASE {{ project_name|lower }} TO {{ project_name|lower }};
CREATE USER openklant;
CREATE DATABASE openklant;
GRANT ALL PRIVILEGES ON DATABASE openklant TO openklant;

Binary file added src/openklant/static/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c74262b

Please sign in to comment.