From 1c1e3418eb79bd09d70eabb7d4817c2d146a874a Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 19 Feb 2025 16:45:27 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20la=20configuration?= =?UTF-8?q?=20de=20Portainer=20:=20suppression=20du=20mot=20de=20passe=20d?= =?UTF-8?q?ans=20.env=20et=20utilisation=20d'un=20fichier=20pour=20le=20mo?= =?UTF-8?q?t=20de=20passe=20administrateur=20dans=20compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 5 +---- compose.yml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 5897842..3f8ea43 100644 --- a/.env +++ b/.env @@ -8,7 +8,4 @@ KEYCLOAK_HOST_IP=172.16.32.134 KEYCLOAK_HOST=connect # Portainer -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 +PORTAINER_HOST=portainer \ No newline at end of file diff --git a/compose.yml b/compose.yml index 38a40f5..a9a3171 100644 --- a/compose.yml +++ b/compose.yml @@ -31,7 +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}' + command: --admin-password-file '/tmp/portpa' networks: - default