From 42b864838d7be6cd2406a3972130761813fc3b6d Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 19 Feb 2025 16:36:09 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20mot=20de=20passe=20administrateur?= =?UTF-8?q?=20pour=20Portainer=20dans=20le=20fichier=20.env=20et=20mise=20?= =?UTF-8?q?=C3=A0=20jour=20de=20la=20commande=20dans=20compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 5 ++++- compose.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 3f8ea43..5897842 100644 --- a/.env +++ b/.env @@ -8,4 +8,7 @@ KEYCLOAK_HOST_IP=172.16.32.134 KEYCLOAK_HOST=connect # Portainer -PORTAINER_HOST=portainer \ No newline at end of file +PORTAINER_HOST=portainer +# Pour mettre a jour, encrypter le mot de passe avec la commande suivante: +# htpasswd -nb -B admin "mot_de_passe" | cut -d ":" -f 2 +PORTAINER_PASSWORD=$2y$05$gMMx0FiBvYmTo68jzlD0TekI2rhQgv4O7P6XwTWNFGojyC02I4RoC \ No newline at end of file diff --git a/compose.yml b/compose.yml index dc4aa52..38a40f5 100644 --- a/compose.yml +++ b/compose.yml @@ -31,6 +31,7 @@ services: - "traefik.enable=true" - "traefik.http.routers.neah-portainer.rule=Host(`${PORTAINER_HOST}.${MAIN_DOMAIN}`)" - "traefik.http.services.neah-portainer.loadbalancer.server.port=9000" + command: --admin-password='${PORTAINER_PASSWORD}' networks: - default