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:
2
.env
2
.env
@@ -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 ###
|
||||
|
||||
@@ -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
7
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user