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 <noreply@anthropic.com>
This commit is contained in:
0
.idea/ferme.iml → .idea/Inventory.iml
generated
0
.idea/ferme.iml → .idea/Inventory.iml
generated
@@ -1,6 +1,6 @@
|
||||
# Changelog
|
||||
|
||||
Liste des évolutions du projet Ferme
|
||||
Liste des évolutions du projet inventory
|
||||
|
||||
## [0.0.0]
|
||||
### Parameters
|
||||
|
||||
@@ -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. <br>
|
||||
Pour cela, il faut aller dans **Settings > PHP > Servers** <br>
|
||||
* 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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
9
docker/.env.docker.local
Normal file
9
docker/.env.docker.local
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user