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
|
||||||
23
README.md
23
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,7 +1,23 @@
|
|||||||
|
networks:
|
||||||
|
loki:
|
||||||
|
name: loki-net # replace the default domain <service>.loki-net
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
# container with tools dns (nslookup, tcptraceroute, etc). Use just for debug
|
||||||
|
# dns-tools:
|
||||||
|
# image: jonlabelle/network-tools
|
||||||
|
# container_name: dns-tools
|
||||||
|
# command: tail -f /dev/null
|
||||||
|
# stdin_open: true
|
||||||
|
# tty: true
|
||||||
|
# networks:
|
||||||
|
# - loki
|
||||||
|
|
||||||
# minio server service
|
# minio server service
|
||||||
minio-server:
|
minio-server:
|
||||||
image: minio/minio
|
image: minio/minio:latest
|
||||||
|
container_name: minio-server
|
||||||
|
hostname: myhostname
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ${MINIO_DATA_ROOT_DIR}:/data
|
- ${MINIO_DATA_ROOT_DIR}:/data
|
||||||
@ -12,6 +28,9 @@ services:
|
|||||||
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
||||||
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
||||||
command: server /data --console-address ":9001"
|
command: server /data --console-address ":9001"
|
||||||
|
networks:
|
||||||
|
- loki
|
||||||
|
|
||||||
# service not necessary, used here to explain how to interact from the container
|
# service not necessary, used here to explain how to interact from the container
|
||||||
# minio-client:
|
# minio-client:
|
||||||
# image: minio/mc
|
# image: minio/mc
|
||||||
@ -28,3 +47,9 @@ services:
|
|||||||
# /usr/bin/mc cp myfile.txt myminio/test-bucket;
|
# /usr/bin/mc cp myfile.txt myminio/test-bucket;
|
||||||
# exit 0;
|
# exit 0;
|
||||||
# "
|
# "
|
||||||
|
# networks:
|
||||||
|
# - loki
|
||||||
|
|
||||||
|
#volumes:
|
||||||
|
# prometheus:
|
||||||
|
# loki:
|
||||||
Loading…
x
Reference in New Issue
Block a user