https://github.com/teableio/railway-minio-console
https://github.com/teableio/railway-minio-console
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/teableio/railway-minio-console
- Owner: teableio
- Created: 2024-09-18T03:47:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T03:50:52.000Z (almost 2 years ago)
- Last Synced: 2026-04-05T17:31:10.885Z (3 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MinIO Console with Automatic Bucket Creation
This repository provides a Docker image for MinIO Console with `mc` tool installed. The image includes functionality to automatically create public and private buckets on startup.
## Features
- MinIO Console installation
- `mc` tool installation
- Automatic creation of public and private buckets on startup
- Checks to ensure buckets are not recreated if they already exist
## Usage
### Build the Docker Image
To build the Docker image, run the following command:
```sh
docker build -t minio-console:latest .
```
### Environment Variables
Ensure the following environment variables are set:
- `USERNAME`: MinIO root username
- `PASSWORD`: MinIO root password
- `PUBLIC_BUCKET`: Name of the public bucket to create
- `PRIVATE_BUCKET`: Name of the private bucket to create
- `PORT`: Port for MinIO Console
- `CONSOLE_MINIO_SERVER`: MinIO server address (e.g., `http://localhost:9000`)
### Run the Docker Container
To run the Docker container, use the following command:
```sh
docker run -e USERNAME= -e PASSWORD= -e PUBLIC_BUCKET= -e PRIVATE_BUCKET= -e PORT= -e CONSOLE_MINIO_SERVER= -p : minio-console:latest
```
Replace ``, ``, ``, ``, ``, ``, and `` with appropriate values.
## Example
```sh
docker run -e USERNAME=minioadmin -e PASSWORD=minioadmin -e PUBLIC_BUCKET=public-bucket -e PRIVATE_BUCKET=private-bucket -e PORT=9001 -e CONSOLE_MINIO_SERVER=http://localhost:9000 -p 9001:9001 minio-console:latest
```
This command will start the MinIO Console on port 9001 and automatically create the specified public and private buckets.
## License
This project is licensed under the MIT License.