Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trickfilm400/php-mongodb-management
A simple php user + database web management
https://github.com/trickfilm400/php-mongodb-management
docker mongodb mongodb-management php
Last synced: 2 days ago
JSON representation
A simple php user + database web management
- Host: GitHub
- URL: https://github.com/trickfilm400/php-mongodb-management
- Owner: Trickfilm400
- License: mit
- Created: 2024-11-13T17:25:01.000Z (2 days ago)
- Default Branch: master
- Last Pushed: 2024-11-13T17:29:58.000Z (2 days ago)
- Last Synced: 2024-11-13T18:31:49.729Z (2 days ago)
- Topics: docker, mongodb, mongodb-management, php
- Language: HTML
- Homepage: https://hub.docker.com/r/n404/php-mongodb-management
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
This Project is a very, very simple PHP API for managing users (+ permissions) + databases in MongoDB
## Features
- Create + Delete Databases
- Create + Delete Users
- Grant + Revoke Roles for users on databases### Usage
```yaml
services:
mongo-mgnt:
image: n404/php-mongodb-management
ports:
- 8777:8080
environment:
- DB_HOST=172.17.0.1
```### Configuration with environment variables
| ENV | Value |
|-----------------------------------------|-----------|
| DB_HOST | localhost |
| DB_PORT | 27017 |
| DB_USER | root |
| DB_PASSWORD | example |
| DB_USER_AUTH_SOURCE (for DB_USER!) | admin |
| AUTH_TOKEN (if empty, auth is disabled) | "" |#### Authentication
If you need authentication for the API, simply set the `AUTH_TOKEN` environment variable to any string and specify this string on the index.html file or at the HTTP API requests in the `Authorization` HTTP Header as an `Bearer` token like this: `Authorization: Bearer `.
The source code currently is a bit crazy, but working.
HTTP API Documentation with OpenAPI schema coming soon in the future or so. (Currently, check the developer tools of the browser).
© 2024 Trickfilm400