Fix Redis session DSN, remove LibreTranslate from prod, track all translations

- Fix SESSION_HANDLER_DSN: use Redis db index (/1) instead of /sessions
  which caused "dbindex must be a number" error
- Remove LibreTranslate service and volume from docker-compose prod
- Remove gitignore rules for translation files (en, es, de, it)
  so all languages are tracked in git
- Apply PHP CS Fixer style fixes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-24 09:35:13 +01:00
parent d44e75e3fd
commit 2987dbfd28
4 changed files with 2 additions and 24 deletions

2
.env
View File

@@ -33,7 +33,7 @@ MESSENGER_TRANSPORT_DSN=redis://redis:6379/messages
###< symfony/messenger ###
###> session ###
SESSION_HANDLER_DSN=redis://redis:6379/sessions
SESSION_HANDLER_DSN=redis://redis:6379/1
###< session ###
###> symfony/mailer ###

View File

@@ -12,6 +12,6 @@ STRIPE_WEBHOOK_SECRET=whsec_test
STRIPE_WEBHOOK_SECRET_CONNECT=whsec_test_connect
OUTSIDE_URL=https://test.example.com
MESSENGER_TRANSPORT_DSN=redis://:e_ticket@redis:6379/messages
SESSION_HANDLER_DSN=redis://:e_ticket@redis:6379/sessions
SESSION_HANDLER_DSN=redis://:e_ticket@redis:6379/1
SMIME_PASSPHRASE=test
ADMIN_EMAIL=contact@test.com

7
.gitignore vendored
View File

@@ -27,13 +27,6 @@ node_modules/
/coverage/
/coverage-clover.xml
###> translations (auto-generated, only FR is source) ###
/translations/*.en.yaml
/translations/*.es.yaml
/translations/*.de.yaml
/translations/*.it.yaml
###< translations ###
###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache

View File

@@ -134,20 +134,6 @@ services:
- meilisearch-data:/meili_data
networks:
- e-ticket
libretranslate:
image: libretranslate/libretranslate:latest
restart: "no"
environment:
LT_LOAD_ONLY: fr,en,es,de,it
LT_DISABLE_WEB_UI: "true"
volumes:
- libretranslate-data:/home/libretranslate/.local
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:5000/languages || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 120s
networks:
e-ticket:
driver: bridge
@@ -157,4 +143,3 @@ volumes:
db-slave-data:
redis-data:
meilisearch-data:
libretranslate-data: