Fix Docker socket access: add docker GID to PHP container group

The PHP container user needs the docker group to read the socket.
Uses DOCKER_GID env var in dev (defaults to 989) and dynamic GID
detection via Ansible stat in prod.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-26 10:53:28 +01:00
parent 8db44017d2
commit 7a370b1e02
3 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ services:
dockerfile: Dockerfile
container_name: e_ticket_php
restart: unless-stopped
group_add:
- "${DOCKER_GID:-989}"
volumes:
- .:/app
- /var/run/docker.sock:/var/run/docker.sock:ro