Fix admin user creation (#472)

add ADMIN_USER, ADMIN_PASSWORD and ADMIN_EMAIL
pull/551/head
masavini 2022-09-20 14:18:25 +02:00 zatwierdzone przez GitHub
rodzic cba2ed75ed
commit 25eaa35758
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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