Aller au contenu principal

Premier démarrage

cd /opt/stayflow
docker compose -f docker-compose.hotel.yml up -d

Docker télécharge automatiquement les images (première fois : ~5 min selon la connexion).

Vérifier que tout tourne

docker compose -f docker-compose.hotel.yml ps

Résultat attendu :

NAME STATUS
stayflow-nginx running
stayflow-api running (healthy)
stayflow-postgres running (healthy)
stayflow-redis running (healthy)

L'API initialise la base de données automatiquement via Flyway (~60–90 secondes au premier démarrage).

Tester :

curl http://localhost/api/v1/actuator/health
# → {"status":"UP"}

L'application est accessible sur le réseau local : http://<ip-mini-pc>

Démarrage automatique au boot

Docker redémarre les containers automatiquement grâce à restart: unless-stopped.

Si Docker lui-même ne démarre pas au boot :

sudo systemctl enable docker
sudo systemctl start docker