This repository demonstrates a simple role-based access control (RBAC) setup using Docker Compose. The application has two predefined users:
- Admin:
[email protected]
(Password:test
, Role: Admin) - User:
[email protected]
(Password:test
, Role: None)
In this demo, users will log in to the app, and depending on their roles, they will have different access privileges.
Ensure you have the following installed:
Follow these steps to get the application up and running with Docker Compose:
- Clone the repository:
git clone <your-repository-url> cd <your-repository-directory>
- Start the application with Docker Compose:
Run the following command to start all services defined in the
docker-compose.yml
file:
docker-compose up -d
This will create and start the containers in the background.
-
Access the application: Open your browser and go to the application URL (
http://localhost:8000>
). -
Login as User:
- Go to the login page.
- Use the following credentials to log in:
- Email:
[email protected]
- Password:
test
- Email:
- Upon successful login, click on the check button to check the status.
- Login as User:
- Go to the login page.
- Use the following credentials to log in:
- Email:
[email protected]
- Password:
test
- Email:
- Upon successful login, click on the check button to check the status.