5 Commits

Author SHA1 Message Date
gitea-actions
777224709d chore: bump version to v0.1.19
All checks were successful
Auto Tag Develop / tag (push) Successful in 5s
Build & Push Docker Image / build (push) Successful in 18s
2026-04-06 15:43:16 +00:00
0a4b0cdc14 Merge remote-tracking branch 'origin/develop' into develop
All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
2026-04-06 17:43:10 +02:00
3fd745196f fix : mount /var/www as /mnt/apps, fix docker socket GID for www-data
- Mount host /var/www into /mnt/apps to avoid conflict with container /var/www/html
- Use GID 987 (host docker group) instead of 999 for socket access
- Add group_add in docker-compose for container-level GID

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 17:42:39 +02:00
8481fe8fef fix : mount /var/www as /mnt/apps to avoid conflict with /var/www/html
Host /var/www contains all apps. Mounting it at /mnt/apps avoids
overwriting the container's /var/www/html where Central lives.
App paths in the UI should use /mnt/apps/ prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 17:15:39 +02:00
061ab13d2b fix : mount individual app dirs instead of /var/www to avoid conflict with /var/www/html
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 17:13:56 +02:00
3 changed files with 19 additions and 19 deletions

View File

@@ -1,2 +1,2 @@
parameters: parameters:
app.version: '0.1.18' app.version: '0.1.19'

View File

@@ -75,10 +75,8 @@ RUN echo "APP_ENV=prod" > /var/www/html/.env
RUN mkdir -p /var/www/html/var/log /var/www/html/var/uploads \ RUN mkdir -p /var/www/html/var/log /var/www/html/var/uploads \
&& chown -R www-data:www-data /var/www/html/var && chown -R www-data:www-data /var/www/html/var
# Allow www-data to use Docker socket # Allow www-data to use Docker socket (GID 987 matches host's docker group)
# The socket GID varies per host; we set it at container startup via entrypoint RUN groupadd -g 987 dockerhost 2>/dev/null; usermod -aG dockerhost www-data
# As fallback, install docker group with common GID
RUN groupadd -g 999 docker 2>/dev/null; usermod -aG docker www-data
WORKDIR /var/www/html WORKDIR /var/www/html
EXPOSE 80 EXPOSE 80

View File

@@ -1,15 +1,17 @@
services: services:
app: app:
image: gitea.malio.fr/malio-dev/central:${CENTRAL_IMAGE_TAG:-latest} image: gitea.malio.fr/malio-dev/central:${CENTRAL_IMAGE_TAG:-latest}
container_name: central-app container_name: central-app
env_file: .env env_file: .env
ports: ports:
- "8084:80" - "8084:80"
volumes: group_add:
- ./config/jwt:/var/www/html/config/jwt:ro - "987"
- ./uploads:/var/www/html/var/uploads volumes:
- /var/run/docker.sock:/var/run/docker.sock - ./config/jwt:/var/www/html/config/jwt:ro
- /var/www:/var/www - ./uploads:/var/www/html/var/uploads
extra_hosts: - /var/run/docker.sock:/var/run/docker.sock
- "host.docker.internal:host-gateway" - /var/www:/mnt/apps
restart: unless-stopped extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped