33 lines
917 B
YAML
33 lines
917 B
YAML
# --- 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 |