From fabf5e348ee0caa05b52918bc0cf944913515c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uli=20K=C3=B6hler?= Date: Wed, 29 Apr 2020 21:14:59 +0200 Subject: [PATCH 1/2] Set default postgres database to 'engine' --- app/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/docker-compose.yml b/app/docker-compose.yml index 8187e2d..7e042c7 100644 --- a/app/docker-compose.yml +++ b/app/docker-compose.yml @@ -6,6 +6,7 @@ services: image: postgres environment: POSTGRES_PASSWORD: postgres + POSTGRES_DB: engine volumes: - pgdata:/var/lib/postgresql/data/ ports: From 74230dd36697770fe76ba65f6340c1dcb86f7687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uli=20K=C3=B6hler?= Date: Wed, 29 Apr 2020 21:16:19 +0200 Subject: [PATCH 2/2] Fix documentation: run engine => run web (fixes ERROR: no such service: engine) --- app/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/README.md b/app/README.md index 68ac702..af83d90 100644 --- a/app/README.md +++ b/app/README.md @@ -19,7 +19,7 @@ cd app docker-compose up -d # apply database migrations -docker-compose run engine python manage.py migrate +docker-compose run web python manage.py migrate ``` The engine should now be available at localhost:8000. Try opening localhost:8000/engine/api in a web browser. @@ -29,7 +29,7 @@ The engine should now be available at localhost:8000. Try opening localhost:8000 To access the Django admin panel, a superuser needs to be created. ``` # Open an interactive shell in engine docker container -docker-compose run engine bash +docker-compose run web bash # Create super user account python manage.py createsuperuser