Separate widgets sounds directory and make it a docker volume

This commit is contained in:
2026-03-12 16:55:00 +01:00
parent 6f97b37cfd
commit 0d0a611049
3 changed files with 3 additions and 1 deletions

View File

@@ -13,4 +13,4 @@ COPY deploy/php/media_proxy.php /usr/share/nginx/html/media_proxy.php
COPY deploy/php/sounds_list.php /usr/share/nginx/html/sounds_list.php
COPY client/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["sh", "-c", "php-fpm83 && exec nginx -g 'daemon off;'"]
CMD ["sh", "-c", "find /usr/share/nginx/html/sounds/widgets -type d -exec chmod 755 {} \\; 2>/dev/null; find /usr/share/nginx/html/sounds/widgets -type f -exec chmod 644 {} \\; 2>/dev/null; php-fpm83 && exec nginx -g 'daemon off;'"]

View File

@@ -35,6 +35,8 @@ services:
- CHGRID_MEDIA_PROXY_SESSION_CHECK_URL=http://server:4474/auth/session/check
ports:
- "127.0.0.1:4474:80"
volumes:
- ./sounds/widgets:/usr/share/nginx/html/sounds/widgets
depends_on:
- server

0
sounds/widgets/.gitkeep Normal file
View File