Ajouter docker-compose.yaml
This commit is contained in:
parent
3aa48941c4
commit
276a04e0c3
33
docker-compose.yaml
Normal file
33
docker-compose.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
# --- Serveur NFS pour les /home ---
|
||||
nfs:
|
||||
image: erichough/nfs-server
|
||||
container_name: pxe-nfs
|
||||
network_mode: host
|
||||
privileged: true # Requis pour le serveur NFS en conteneur
|
||||
environment:
|
||||
- NFS_EXPORT_0=/mnt/usb-data/homes *(rw,sync,no_subtree_check,no_root_squash)
|
||||
volumes:
|
||||
- /mnt/usb-data/homes:/mnt/usb-data/homes
|
||||
- /lib/modules:/lib/modules:ro
|
||||
restart: unless-stopped
|
||||
|
||||
# --- Serveur de Logs (Loki) ---
|
||||
loki:
|
||||
image: grafana/loki:latest
|
||||
container_name: pxe-loki
|
||||
ports:
|
||||
- "3100:3100"
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
volumes:
|
||||
- /mnt/usb-data/logs:/loki
|
||||
restart: unless-stopped
|
||||
|
||||
# --- Tableau de bord (Grafana) ---
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: pxe-grafana
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- /mnt/usb-data/monitoring:/var/lib/grafana
|
||||
restart: unless-stopped
|
||||
Loading…
Reference in New Issue
Block a user