Project
- GitHub - profil: https://github.com/parisnakitakejser
- GitHub - Source code: https://github.com/parisnakitakejser/component-authentication
- Docker Hub: https://hub.docker.com/r/parisnk/component-authentication
🌟 Community 🌟
- Subscribe my channel: https://www.youtube.com/c/ParisNakitaKejser?sub_confirmation=1
- Youtube playlist: https://www.youtube.com/playlist?list=PLLhEJK7fQIxBd-HloE6l6mQ810mcnPV-L
- Private website: https://www.pnk.sh
- Discord: https://discord.gg/6tcWjxV
- Donate: https://www.patreon.com/parisnakitakejser
System environments to set
Environment vars | Fallback |
---|---|
MONGO_DATABASE | component-authentication |
MONGO_HOST | None |
MONGO_PORT | None |
MONGO_USERNAME | None |
MONGO_PASSWORD | None |
MONGO_AUTH_SOURCE | None |
MONGO_MECHANISM | None |
JWT_TOKEN_SECRET | None |
SESSION_SECRET_KEY | None |
SESSION_LIFETIME | 604800 |
Build new images
If you found eny bugs and want to build your own images, you can do it very quickly by using this command
docker build -t component-authentication:{version} . --no-cache -f .docker/Dockerfile
Run unittest local in container
If you want to run test after you have change code or just want to check all tests out, its can be done by build a unittest images and run the unittest images after in a single docker container.
docker build -t unittest . -f .docker/Unittest/Dockerfile
docker run --rm unittest
docker-compose.yaml sample
version: "3.7"
services:
component-authentication:
image: parisnk/component-authentication
ports:
- "5000:5000"
environment:
- MONGO_DATABASE=component-authentication
- MONGO_HOST={hostname}
- MONGO_PORT={port}
- MONGO_USERNAME={username}
- MONGO_PASSWORD={password}
- MONGO_AUTH_SOURCE=admin
- MONGO_MECHANISM=SCRAM-SHA-1
- JWT_TOKEN_SECRET={jwt-secret-token}