From 25eaa35758fd62e8a3ad6e5356767996c36e8143 Mon Sep 17 00:00:00 2001 From: masavini Date: Tue, 20 Sep 2022 14:18:25 +0200 Subject: [PATCH] Fix admin user creation (#472) add ADMIN_USER, ADMIN_PASSWORD and ADMIN_EMAIL --- docker-compose-dev.yaml | 4 ++++ docs/developers_docs.md | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/docker-compose-dev.yaml b/docker-compose-dev.yaml index 3618bbf..77c9a8e 100644 --- a/docker-compose-dev.yaml +++ b/docker-compose-dev.yaml @@ -18,6 +18,10 @@ services: context: . dockerfile: ./Dockerfile-dev image: mediacms/mediacms-dev:latest + environment: + ADMIN_USER: 'admin' + ADMIN_PASSWORD: 'admin' + ADMIN_EMAIL: 'admin@localhost' ports: - "80:80" volumes: diff --git a/docs/developers_docs.md b/docs/developers_docs.md index c7fdab5..9947d85 100644 --- a/docs/developers_docs.md +++ b/docs/developers_docs.md @@ -54,6 +54,13 @@ docker-compose -f docker-compose-dev.yaml build docker-compose -f docker-compose-dev.yaml up ``` +An `admin` user is created during the installation process. Its attributes are defined in `docker-compose-dev.yaml`: +``` +ADMIN_USER: 'admin' +ADMIN_PASSWORD: 'admin' +ADMIN_EMAIL: 'admin@localhost' +``` + ### Frontend application changes Eg change `frontend/src/static/js/pages/HomePage.tsx` , dev application refreshes in a number of seconds (hot reloading) and I see the changes, once I'm happy I can run