minio ok
This commit is contained in:
commit
de7706f177
3
.env.dist
Normal file
3
.env.dist
Normal file
@ -0,0 +1,3 @@
|
||||
MINIO_DATA_ROOT_DIR=<path_to_your_data_dir>
|
||||
MINIO_ACCESS_KEY=minio
|
||||
MINIO_SECRET_KEY=minio123
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.env
|
||||
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"editor.fontSize": 13,
|
||||
"terminal.integrated.fontSize": 13,
|
||||
"window.zoomLevel": 1.4,
|
||||
}
|
||||
32
README.md
Normal file
32
README.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Grafana-Loki-Minio
|
||||
|
||||
## Description
|
||||
## Requirements
|
||||
### Minio
|
||||
Create the folder where the minio data will be stored
|
||||
```bash
|
||||
sudo mkdir -p /home/docker/minio
|
||||
```
|
||||
|
||||
Copy the `.env-dist` file to `.env` and update it with values appropriate for your setup.
|
||||
```bash
|
||||
MINIO_DATA_ROOT_DIR=/home/docker/minio
|
||||
MINIO_ACCESS_KEY=minio
|
||||
MINIO_SECRET_KEY=minio123
|
||||
```
|
||||
|
||||
## Run
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Access
|
||||
|
||||
* Minio - http://* <server_fqdn>:9001
|
||||
|
||||
|
||||
## Sources
|
||||
* https://thanhtunguet.info/posts/install-minio-using-docker-compose/
|
||||
* https://min.io/docs/minio/container/index.html
|
||||
* https://www.nathaniel-walser.com/docker-compose-templates/minio
|
||||
* https://github.com/Anagraph/minio-docker-config/blob/master/docker-compose.yaml
|
||||
30
docker-compose.yaml
Normal file
30
docker-compose.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
services:
|
||||
# minio server service
|
||||
minio-server:
|
||||
image: minio/minio
|
||||
restart: always
|
||||
volumes:
|
||||
- ${MINIO_DATA_ROOT_DIR}:/data
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
||||
command: server /data --console-address ":9001"
|
||||
# service not necessary, used here to explain how to interact from the container
|
||||
#minio-client:
|
||||
# image: minio/mc
|
||||
# # insure that the server container is running before building the client
|
||||
# depends_on:
|
||||
# - minio-server
|
||||
# entrypoint: >
|
||||
# /bin/sh -c "
|
||||
# /usr/bin/mc admin info play;
|
||||
# /usr/bin/mc alias set myminio http://minio-server:9000 ${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY};
|
||||
# /usr/bin/mc mb myminio/test-bucket;
|
||||
# /usr/bin/mc mb myminio/loki;
|
||||
# echo 'my content' > myfile.txt;
|
||||
# /usr/bin/mc cp myfile.txt myminio/test-bucket;
|
||||
# exit 0;
|
||||
# "
|
||||
Loading…
x
Reference in New Issue
Block a user