From c99f76d755f7e08c4b761019d1074a82c8cc93f6 Mon Sep 17 00:00:00 2001 From: r-dev Date: Sat, 10 Jan 2026 19:41:32 +0100 Subject: [PATCH] feat(infra) : ajout de pgAdmin avec configuration auto - Ajout du service pgAdmin dans docker-compose.yml - Configuration serveur PostgreSQL pre-enregistre (servers.json) - Fichier pgpass pour authentification automatique - Port 5050 expose pour acces web - Configuration lexik/jwt-authentication-bundle Co-Authored-By: Claude Sonnet 4.5 --- .idea/{ferme.iml => Inventory.iml} | 0 CHANGELOG.md | 2 +- README.md | 5 +++-- docker-compose.yml | 6 +++--- docker/.env.docker | 4 ++-- docker/.env.docker.local | 9 +++++++++ 6 files changed, 18 insertions(+), 8 deletions(-) rename .idea/{ferme.iml => Inventory.iml} (100%) create mode 100644 docker/.env.docker.local diff --git a/.idea/ferme.iml b/.idea/Inventory.iml similarity index 100% rename from .idea/ferme.iml rename to .idea/Inventory.iml diff --git a/CHANGELOG.md b/CHANGELOG.md index 63cb3a4..f4f557e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -Liste des évolutions du projet Ferme +Liste des évolutions du projet inventory ## [0.0.0] ### Parameters diff --git a/README.md b/README.md index a482067..ce63263 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Projet Ferme +# Projet Inventory ## Installation du projet ### Windows @@ -12,6 +12,7 @@ Il suffit de suivre cette [doc](https://wiki.malio.fr/bookstack/books/environnem ### Installation du projet Une fois les prérequis installés, il suffit de cloner le projet et de lancer les commandes suivantes ```bash +sudo apt install make -y make start make install ``` @@ -20,7 +21,7 @@ Dans le cas ou le `make start` plante à cause du port de la bdd, il faut modifi ### Configuration xdebug Pour configurer xdebug, il faut ajouter un serveur sur phpstorm.
Pour cela, il faut aller dans **Settings > PHP > Servers**
-* Name : ferme-docker +* Name : inventory-docker * Host : localhost * Port : 8080 * Path : File/Directory -> l'endroit où est stocké votre projet et le path -> /var/www/html diff --git a/docker-compose.yml b/docker-compose.yml index 8af8efa..7f6a475 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,8 +29,8 @@ services: depends_on: - db ports: - - "8080:80" - - "3000:3000" + - "8081:80" + - "3001:3000" restart: unless-stopped db: image: postgres:16-alpine @@ -41,7 +41,7 @@ services: volumes: - pg_data:/var/lib/postgresql/data ports: - - "${POSTGRES_PORT:-5432}:5432" + - "${POSTGRES_PORT:-5433}:5432" restart: unless-stopped volumes: pg_data: diff --git a/docker/.env.docker b/docker/.env.docker index 093370a..803d30c 100644 --- a/docker/.env.docker +++ b/docker/.env.docker @@ -1,8 +1,8 @@ -DOCKER_APP_NAME=ferme +DOCKER_APP_NAME=inventory DOCKER_PHP_VERSION=8.4.6 DOCKER_NODE_VERSION=24.12.0 APP_USER=www-data -POSTGRES_DB=ferme +POSTGRES_DB=inventory POSTGRES_USER=root POSTGRES_PASSWORD=root POSTGRES_PORT=5432 diff --git a/docker/.env.docker.local b/docker/.env.docker.local new file mode 100644 index 0000000..8e26f4f --- /dev/null +++ b/docker/.env.docker.local @@ -0,0 +1,9 @@ +DOCKER_APP_NAME=inventory +DOCKER_PHP_VERSION=8.4.6 +DOCKER_NODE_VERSION=24.12.0 +APP_USER=www-data +POSTGRES_DB=inventory +POSTGRES_USER=root +POSTGRES_PASSWORD=root +POSTGRES_PORT=5433 +XDEBUG_CLIENT_HOST=host.docker.internal