Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
777224709d | ||
| 0a4b0cdc14 | |||
| 3fd745196f | |||
| 8481fe8fef | |||
| 061ab13d2b |
@@ -1,2 +1,2 @@
|
|||||||
parameters:
|
parameters:
|
||||||
app.version: '0.1.18'
|
app.version: '0.1.19'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user