Skip to content

Commit b8fc66c

Browse files
committed
Fix config file
1 parent 8503268 commit b8fc66c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docker-compose-branch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
- yam-report
77
- traefik-realt
88
volumes:
9+
- ./config.json:/app/config.json
910
- ./YAM_events.db:/app/YAM_events.db
1011
labels:
1112
- 'traefik.enable=true'

docker-entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
# # Vérifier si le fichier config.json existe
4-
# if [ ! -f "config.json" ]; then
5-
# echo "Erreur: config.json non trouvé. Veuillez monter le fichier config.json dans le conteneur."
6-
# exit 1
7-
# fi
3+
# Vérifier si le fichier config.json existe
4+
if [ ! -f "config.json" ]; then
5+
echo "Erreur: config.json non trouvé. Veuillez monter le fichier config.json dans le conteneur."
6+
exit 1
7+
fi
88

99
# Initialiser le module d'indexation si la base de données n'existe pas
1010
if [ ! -f "YAM_events.db" ]; then

0 commit comments

Comments
 (0)