add dns-tools service for debug
This commit is contained in:
parent
de7706f177
commit
de87127616
@ -1,3 +1,3 @@
|
|||||||
MINIO_DATA_ROOT_DIR=<path_to_your_data_dir>
|
MINIO_DATA_ROOT_DIR=<path_to_your_minio_data_dir>
|
||||||
MINIO_ACCESS_KEY=minio
|
MINIO_ACCESS_KEY=minio
|
||||||
MINIO_SECRET_KEY=minio123
|
MINIO_SECRET_KEY=minio123
|
||||||
|
|||||||
25
README.md
25
README.md
@ -1,6 +1,12 @@
|
|||||||
# Grafana-Loki-Minio
|
# Grafana-Loki-Minio
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
This dokcer run stack grafana, loki, promtail, minio
|
||||||
|
### Container
|
||||||
|
| Name | URL | Description |
|
||||||
|
|:---|:---|:---|
|
||||||
|
| dns-tools | - | container with dns tools (just use for debug)|
|
||||||
|
| minio-server | UI: `http://<fqdn_server>;9001`<br>API: `http://<fqdn_server>;9000`| container minio server UI and API |
|
||||||
## Requirements
|
## Requirements
|
||||||
### Minio
|
### Minio
|
||||||
Create the folder where the minio data will be stored
|
Create the folder where the minio data will be stored
|
||||||
@ -22,11 +28,26 @@ docker compose up -d
|
|||||||
|
|
||||||
## Access
|
## Access
|
||||||
|
|
||||||
* Minio - http://* <server_fqdn>:9001
|
**dns-tools**
|
||||||
|
```bash
|
||||||
|
docker exec -it dns-tools /bin/bash
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
dig minio-server
|
||||||
|
ping minio-server
|
||||||
|
nslookup minio-server
|
||||||
|
```
|
||||||
|
|
||||||
|
**Minio console**
|
||||||
|
http://<server_fqdn>:9001
|
||||||
|
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
|
### Minio
|
||||||
* https://thanhtunguet.info/posts/install-minio-using-docker-compose/
|
* https://thanhtunguet.info/posts/install-minio-using-docker-compose/
|
||||||
* https://min.io/docs/minio/container/index.html
|
* https://min.io/docs/minio/container/index.html
|
||||||
* https://www.nathaniel-walser.com/docker-compose-templates/minio
|
* https://www.nathaniel-walser.com/docker-compose-templates/minio
|
||||||
* https://github.com/Anagraph/minio-docker-config/blob/master/docker-compose.yaml
|
* https://github.com/Anagraph/minio-docker-config/blob/master/docker-compose.yaml
|
||||||
|
|
||||||
|
### Grafana
|
||||||
|
* https://grafana.com/docs/loki/latest/setup/install/docker/
|
||||||
@ -1,30 +1,55 @@
|
|||||||
|
networks:
|
||||||
|
loki:
|
||||||
|
name: loki-net # replace the default domain <service>.loki-net
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# minio server service
|
# container with tools dns (nslookup, tcptraceroute, etc). Use just for debug
|
||||||
minio-server:
|
# dns-tools:
|
||||||
image: minio/minio
|
# image: jonlabelle/network-tools
|
||||||
restart: always
|
# container_name: dns-tools
|
||||||
volumes:
|
# command: tail -f /dev/null
|
||||||
- ${MINIO_DATA_ROOT_DIR}:/data
|
# stdin_open: true
|
||||||
ports:
|
# tty: true
|
||||||
- "9000:9000"
|
# networks:
|
||||||
- "9001:9001"
|
# - loki
|
||||||
environment:
|
|
||||||
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
# minio server service
|
||||||
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
minio-server:
|
||||||
command: server /data --console-address ":9001"
|
image: minio/minio:latest
|
||||||
# service not necessary, used here to explain how to interact from the container
|
container_name: minio-server
|
||||||
#minio-client:
|
hostname: myhostname
|
||||||
# image: minio/mc
|
restart: always
|
||||||
# # insure that the server container is running before building the client
|
volumes:
|
||||||
# depends_on:
|
- ${MINIO_DATA_ROOT_DIR}:/data
|
||||||
# - minio-server
|
ports:
|
||||||
# entrypoint: >
|
- "9000:9000"
|
||||||
# /bin/sh -c "
|
- "9001:9001"
|
||||||
# /usr/bin/mc admin info play;
|
environment:
|
||||||
# /usr/bin/mc alias set myminio http://minio-server:9000 ${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY};
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
||||||
# /usr/bin/mc mb myminio/test-bucket;
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
||||||
# /usr/bin/mc mb myminio/loki;
|
command: server /data --console-address ":9001"
|
||||||
# echo 'my content' > myfile.txt;
|
networks:
|
||||||
# /usr/bin/mc cp myfile.txt myminio/test-bucket;
|
- loki
|
||||||
# exit 0;
|
|
||||||
# "
|
# 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;
|
||||||
|
# "
|
||||||
|
# networks:
|
||||||
|
# - loki
|
||||||
|
|
||||||
|
#volumes:
|
||||||
|
# prometheus:
|
||||||
|
# loki:
|
||||||
Loading…
x
Reference in New Issue
Block a user