diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..ecdbb11 --- /dev/null +++ b/docker-compose.yaml @@ -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 \ No newline at end of file