Aller au contenu

Environnements

Primatch est déployé sur trois environnements avec des configurations distinctes.


Vue d'ensemble

Environnement URL Base de données Usage
Développement localhost:3010 (front) / localhost:8010 (api) primatch_dev (local) Développement quotidien
Production primatch-poc.com PostgreSQL serveur Version live

Développement

Tous les services tournent via Docker Compose.

make dev          # Lance tous les services
make stop         # Arrête les services
make restart      # Redémarre
make shell-api    # Shell dans le conteneur API

Services disponibles

Service URL Port interne
Frontend React http://localhost:3010 :5173 (Vite)
API Laravel (Nginx) http://localhost:8010 :80
API PHP-FPM — (non exposé) :9000
Swagger UI http://localhost:8010/api/documentation
Laravel Telescope http://localhost:8010/telescope
Laravel Pulse http://localhost:8010/pulse
Documentation MkDocs http://localhost:8020 :8000 (MkDocs)
PostgreSQL localhost:5440 :5432
Redis localhost:6385 :6379
WebSockets (Soketi) localhost:8090 :6001
SonarQube http://localhost:9000 :9000
Service URL Port exposé
Frontend React http://primatch-poc.com :3011
API Laravel (Nginx) http://primatch-poc.com/api :8011
Documentation MkDocs http://primatch-poc.com:8020 :8020
PostgreSQL — (non exposé publiquement) :5440
Redis — (non exposé publiquement) :6385
WebSockets (Soketi) ws://primatch-poc.com :8090

Production

Serveur : 217.154.23.27
Chemin : /var/www/vhosts/primatch-poc.com/primatch

Accès production

L'accès au serveur de production se fait uniquement via SSH :

ssh root@217.154.23.27 -i /home/doulla/.ssh/weltaare_deploy


Variables d'environnement

Les variables sont gérées dans docker-compose.yml (pas de fichier .env commité).

Variable Description
APP_ENV local, production
DB_* Connexion PostgreSQL
REDIS_* Connexion Redis
JWT_SECRET Clé secrète JWT
PUSHER_* Config Soketi WebSockets