mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 00:03:28 +01:00
Fix admin user creation (#472)
add ADMIN_USER, ADMIN_PASSWORD and ADMIN_EMAIL
This commit is contained in:
parent
cba2ed75ed
commit
25eaa35758
@ -18,6 +18,10 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile-dev
|
dockerfile: ./Dockerfile-dev
|
||||||
image: mediacms/mediacms-dev:latest
|
image: mediacms/mediacms-dev:latest
|
||||||
|
environment:
|
||||||
|
ADMIN_USER: 'admin'
|
||||||
|
ADMIN_PASSWORD: 'admin'
|
||||||
|
ADMIN_EMAIL: 'admin@localhost'
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -54,6 +54,13 @@ docker-compose -f docker-compose-dev.yaml build
|
|||||||
docker-compose -f docker-compose-dev.yaml up
|
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
|
### 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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user