2026-03-18 20:12:09 +01:00
|
|
|
services:
|
|
|
|
|
php:
|
|
|
|
|
build:
|
|
|
|
|
context: ./docker/php/dev
|
|
|
|
|
dockerfile: Dockerfile
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_php
|
2026-03-18 20:12:09 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
Redesign admin Infra page: full-screen 4-column layout with Docker stats
Complete rewrite of /admin/infra into 4 columns:
- Col 1 (Serveur): CPU, RAM, Disk, System, Services (Caddy, Docker, SSL cert)
- Col 2 (Containers): All Docker containers with CPU%, RAM, state via Docker API
- Col 3 (Redis): Global stats + per-DB (Messenger, Sessions, Cache)
- Col 4 (PostgreSQL): Instance stats + PgBouncer pools/stats
Extract all infra logic into InfraService. Mount Docker socket (read-only)
in PHP container for container stats. Check SSL cert expiry and Caddy status.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 10:51:04 +01:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2026-03-18 20:12:09 +01:00
|
|
|
ports:
|
|
|
|
|
- "9000:9000"
|
|
|
|
|
depends_on:
|
2026-03-26 10:33:51 +01:00
|
|
|
pgbouncer:
|
2026-03-18 20:12:09 +01:00
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
database:
|
|
|
|
|
image: postgres:16-alpine
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_database
|
2026-03-18 20:12:09 +01:00
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: app
|
|
|
|
|
POSTGRES_PASSWORD: secret
|
2026-03-18 21:12:42 +01:00
|
|
|
POSTGRES_DB: e_ticket
|
2026-03-18 20:12:09 +01:00
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
volumes:
|
|
|
|
|
- db-data:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
2026-03-18 21:12:42 +01:00
|
|
|
test: ["CMD-SHELL", "pg_isready -U app -d e_ticket"]
|
2026-03-18 20:12:09 +01:00
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
2026-03-26 10:33:51 +01:00
|
|
|
pgbouncer:
|
|
|
|
|
image: edoburu/pgbouncer
|
|
|
|
|
container_name: e_ticket_pgbouncer
|
|
|
|
|
volumes:
|
|
|
|
|
- ./docker/pgsql/pgbouncer-dev.ini:/etc/pgbouncer/pgbouncer.ini:ro
|
|
|
|
|
- ./docker/pgsql/userlist-dev.txt:/etc/pgbouncer/userlist.txt:ro
|
|
|
|
|
ports:
|
|
|
|
|
- "6432:6432"
|
|
|
|
|
depends_on:
|
|
|
|
|
database:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 6432 -U app"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
2026-03-18 20:12:09 +01:00
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_redis
|
|
|
|
|
command: redis-server --requirepass e_ticket
|
2026-03-18 20:12:09 +01:00
|
|
|
ports:
|
|
|
|
|
- "6379:6379"
|
|
|
|
|
volumes:
|
|
|
|
|
- redis-data:/data
|
|
|
|
|
healthcheck:
|
2026-03-18 21:12:42 +01:00
|
|
|
test: ["CMD", "redis-cli", "-a", "e_ticket", "ping"]
|
2026-03-18 20:12:09 +01:00
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
2026-03-18 20:23:16 +01:00
|
|
|
caddy:
|
|
|
|
|
image: caddy:2-alpine
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_caddy
|
2026-03-18 20:23:16 +01:00
|
|
|
ports:
|
|
|
|
|
- "8000:80"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
|
- .:/app
|
|
|
|
|
depends_on:
|
|
|
|
|
- php
|
|
|
|
|
|
2026-03-18 20:12:09 +01:00
|
|
|
messenger:
|
|
|
|
|
build:
|
|
|
|
|
context: ./docker/php/dev
|
|
|
|
|
dockerfile: Dockerfile
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_messenger
|
2026-03-18 20:12:09 +01:00
|
|
|
command: php bin/console messenger:consume async -vv
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
|
|
|
|
depends_on:
|
2026-03-26 10:33:51 +01:00
|
|
|
pgbouncer:
|
2026-03-18 20:12:09 +01:00
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
2026-03-26 09:04:27 +01:00
|
|
|
meilisearch:
|
2026-03-26 09:32:22 +01:00
|
|
|
condition: service_started
|
2026-03-18 20:12:09 +01:00
|
|
|
|
2026-03-18 20:40:40 +01:00
|
|
|
bun:
|
|
|
|
|
image: oven/bun:alpine
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_bun
|
2026-03-18 20:40:40 +01:00
|
|
|
working_dir: /app
|
|
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
|
|
|
|
- bun-modules:/app/node_modules
|
|
|
|
|
command: sh -c "bun install && bun run dev"
|
|
|
|
|
ports:
|
|
|
|
|
- "5173:5173"
|
|
|
|
|
|
2026-03-18 20:12:09 +01:00
|
|
|
mailpit:
|
|
|
|
|
image: axllent/mailpit
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_mailpit
|
2026-03-18 20:12:09 +01:00
|
|
|
ports:
|
|
|
|
|
- "1025:1025"
|
|
|
|
|
- "8025:8025"
|
|
|
|
|
|
Add Cloudflare automation, ngrok tunnel, fix Dockerfiles
- Ansible cloudflare.yml: DNS, SSL, HSTS, Brotli, bot fight, SEO bots allow
- Vault: add cloudflare_zone_id
- Workflow: run cloudflare config before deploy
- docker-compose-dev: add ngrok tunnel, vault, minio
- Ngrok sync script: writes OUTSIDE_URL to .env.local
- Fix Dockerfiles: remove mbstring/xml (built-in PHP 8.4), fix libfreetype-dev
- Makefile: maintenance_on/off, clear_prod
- Playbook: stop_prod, install_prod, start_prod, migrate, clear steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 21:06:11 +01:00
|
|
|
vault:
|
|
|
|
|
image: hashicorp/vault:latest
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_vault
|
Add Cloudflare automation, ngrok tunnel, fix Dockerfiles
- Ansible cloudflare.yml: DNS, SSL, HSTS, Brotli, bot fight, SEO bots allow
- Vault: add cloudflare_zone_id
- Workflow: run cloudflare config before deploy
- docker-compose-dev: add ngrok tunnel, vault, minio
- Ngrok sync script: writes OUTSIDE_URL to .env.local
- Fix Dockerfiles: remove mbstring/xml (built-in PHP 8.4), fix libfreetype-dev
- Makefile: maintenance_on/off, clear_prod
- Playbook: stop_prod, install_prod, start_prod, migrate, clear steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 21:06:11 +01:00
|
|
|
cap_add:
|
|
|
|
|
- IPC_LOCK
|
|
|
|
|
environment:
|
2026-03-18 21:12:42 +01:00
|
|
|
VAULT_DEV_ROOT_TOKEN_ID: e_ticket
|
Add Cloudflare automation, ngrok tunnel, fix Dockerfiles
- Ansible cloudflare.yml: DNS, SSL, HSTS, Brotli, bot fight, SEO bots allow
- Vault: add cloudflare_zone_id
- Workflow: run cloudflare config before deploy
- docker-compose-dev: add ngrok tunnel, vault, minio
- Ngrok sync script: writes OUTSIDE_URL to .env.local
- Fix Dockerfiles: remove mbstring/xml (built-in PHP 8.4), fix libfreetype-dev
- Makefile: maintenance_on/off, clear_prod
- Playbook: stop_prod, install_prod, start_prod, migrate, clear steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 21:06:11 +01:00
|
|
|
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
|
|
|
|
|
ports:
|
|
|
|
|
- "8200:8200"
|
|
|
|
|
volumes:
|
|
|
|
|
- vault-data:/vault/file
|
|
|
|
|
|
|
|
|
|
ngrok:
|
|
|
|
|
image: ngrok/ngrok:latest
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_ngrok
|
Add Cloudflare automation, ngrok tunnel, fix Dockerfiles
- Ansible cloudflare.yml: DNS, SSL, HSTS, Brotli, bot fight, SEO bots allow
- Vault: add cloudflare_zone_id
- Workflow: run cloudflare config before deploy
- docker-compose-dev: add ngrok tunnel, vault, minio
- Ngrok sync script: writes OUTSIDE_URL to .env.local
- Fix Dockerfiles: remove mbstring/xml (built-in PHP 8.4), fix libfreetype-dev
- Makefile: maintenance_on/off, clear_prod
- Playbook: stop_prod, install_prod, start_prod, migrate, clear steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 21:06:11 +01:00
|
|
|
command: http caddy:80 --log stdout
|
|
|
|
|
environment:
|
|
|
|
|
NGROK_AUTHTOKEN: GXtZtKtRxRF5TFV5pCKD_25f1ALUyQQ9LkyQJgv1dr
|
|
|
|
|
ports:
|
|
|
|
|
- "4040:4040"
|
|
|
|
|
depends_on:
|
|
|
|
|
- caddy
|
|
|
|
|
|
|
|
|
|
ngrok-sync:
|
|
|
|
|
image: curlimages/curl:latest
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_ngrok_sync
|
2026-03-18 21:24:31 +01:00
|
|
|
user: "0:0"
|
Add Cloudflare automation, ngrok tunnel, fix Dockerfiles
- Ansible cloudflare.yml: DNS, SSL, HSTS, Brotli, bot fight, SEO bots allow
- Vault: add cloudflare_zone_id
- Workflow: run cloudflare config before deploy
- docker-compose-dev: add ngrok tunnel, vault, minio
- Ngrok sync script: writes OUTSIDE_URL to .env.local
- Fix Dockerfiles: remove mbstring/xml (built-in PHP 8.4), fix libfreetype-dev
- Makefile: maintenance_on/off, clear_prod
- Playbook: stop_prod, install_prod, start_prod, migrate, clear steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 21:06:11 +01:00
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
|
|
|
|
- ./docker/ngrok/sync.sh:/sync.sh
|
|
|
|
|
depends_on:
|
|
|
|
|
- ngrok
|
|
|
|
|
entrypoint: sh /sync.sh
|
|
|
|
|
|
2026-03-18 21:59:22 +01:00
|
|
|
meilisearch:
|
|
|
|
|
image: getmeili/meilisearch:latest
|
|
|
|
|
container_name: e_ticket_meilisearch
|
|
|
|
|
environment:
|
|
|
|
|
MEILI_MASTER_KEY: e_ticket
|
|
|
|
|
MEILI_ENV: development
|
|
|
|
|
ports:
|
|
|
|
|
- "7700:7700"
|
|
|
|
|
volumes:
|
|
|
|
|
- meilisearch-data:/meili_data
|
|
|
|
|
|
Add LibreTranslate auto-translation, improve test coverage, fix code duplication
Translation system:
- Add LibreTranslate container (dev + prod), CPU-only, no port exposed, FR/EN/ES/DE/IT
- Create app:translate command: reads *.fr.yaml, translates incrementally, preserves placeholders
- Makefile: make trans / make trans_prod (stops container after translation)
- Ansible: start libretranslate -> translate -> stop during deploy
- Prod container restart: "no" (only runs during deploy)
- .gitignore: ignore generated *.en/es/de/it.yaml files
- 11 tests for TranslateCommand (API unreachable, empty, incremental, obsolete keys, placeholders, fallback)
Test coverage improvements:
- OrderController: event ended (400), invalid cart JSON, invalid email, stock zero (4 new tests)
- AccountController: finance stats all statuses (paid/pending/refunded/cancelled), soldCounts (2 new tests)
- JS cart: checkout without error elements, hide error on retry, stock polling edge cases (singular, no label, qty zero, unknown billet) (8 new tests)
- JS editor: comment node sanitization (1 new test)
- JS tabs: missing panel, generated id, parent null, click no-panel (5 new tests)
Code duplication fixes:
- MeilisearchConsistencyCommand: extract diffAndReport() method (was duplicated 3x)
- Email templates: extract _order_items_table.html.twig partial (shared by notification + cancelled)
- SonarQube: exclude src/Entity/** from CPD (getters/setters duplication)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 11:44:13 +01:00
|
|
|
libretranslate:
|
|
|
|
|
image: libretranslate/libretranslate:latest
|
|
|
|
|
container_name: e_ticket_libretranslate
|
|
|
|
|
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
|
|
|
|
|
|
2026-03-24 11:52:31 +01:00
|
|
|
cron:
|
|
|
|
|
build:
|
|
|
|
|
context: ./docker/cron
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: e_ticket_cron
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
|
|
|
|
depends_on:
|
2026-03-26 10:33:51 +01:00
|
|
|
pgbouncer:
|
2026-03-24 11:52:31 +01:00
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
2026-03-18 20:12:09 +01:00
|
|
|
redisinsight:
|
|
|
|
|
image: redis/redisinsight:latest
|
2026-03-18 21:12:42 +01:00
|
|
|
container_name: e_ticket_redisinsight
|
2026-03-18 20:12:09 +01:00
|
|
|
ports:
|
|
|
|
|
- "5540:5540"
|
|
|
|
|
depends_on:
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
db-data:
|
|
|
|
|
redis-data:
|
2026-03-18 20:40:40 +01:00
|
|
|
bun-modules:
|
Add Cloudflare automation, ngrok tunnel, fix Dockerfiles
- Ansible cloudflare.yml: DNS, SSL, HSTS, Brotli, bot fight, SEO bots allow
- Vault: add cloudflare_zone_id
- Workflow: run cloudflare config before deploy
- docker-compose-dev: add ngrok tunnel, vault, minio
- Ngrok sync script: writes OUTSIDE_URL to .env.local
- Fix Dockerfiles: remove mbstring/xml (built-in PHP 8.4), fix libfreetype-dev
- Makefile: maintenance_on/off, clear_prod
- Playbook: stop_prod, install_prod, start_prod, migrate, clear steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 21:06:11 +01:00
|
|
|
vault-data:
|
2026-03-18 21:59:22 +01:00
|
|
|
meilisearch-data:
|
Add LibreTranslate auto-translation, improve test coverage, fix code duplication
Translation system:
- Add LibreTranslate container (dev + prod), CPU-only, no port exposed, FR/EN/ES/DE/IT
- Create app:translate command: reads *.fr.yaml, translates incrementally, preserves placeholders
- Makefile: make trans / make trans_prod (stops container after translation)
- Ansible: start libretranslate -> translate -> stop during deploy
- Prod container restart: "no" (only runs during deploy)
- .gitignore: ignore generated *.en/es/de/it.yaml files
- 11 tests for TranslateCommand (API unreachable, empty, incremental, obsolete keys, placeholders, fallback)
Test coverage improvements:
- OrderController: event ended (400), invalid cart JSON, invalid email, stock zero (4 new tests)
- AccountController: finance stats all statuses (paid/pending/refunded/cancelled), soldCounts (2 new tests)
- JS cart: checkout without error elements, hide error on retry, stock polling edge cases (singular, no label, qty zero, unknown billet) (8 new tests)
- JS editor: comment node sanitization (1 new test)
- JS tabs: missing panel, generated id, parent null, click no-panel (5 new tests)
Code duplication fixes:
- MeilisearchConsistencyCommand: extract diffAndReport() method (was duplicated 3x)
- Email templates: extract _order_items_table.html.twig partial (shared by notification + cancelled)
- SonarQube: exclude src/Entity/** from CPD (getters/setters duplication)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 11:44:13 +01:00
|
|
|
libretranslate-data:
|