fix: worker logs permission denied + migration AFTER password

This commit is contained in:
Lizandro Guarnizo
2026-03-10 22:23:30 -05:00
parent db469b2134
commit 1fb4361f96
3 changed files with 15 additions and 3 deletions
+6 -2
View File
@@ -7,6 +7,7 @@ ENV TZ=America/Bogota
# Instalar dependencias
RUN apk add --no-cache \
bash \
su-exec \
libzip \
libzip-dev \
icu \
@@ -59,10 +60,13 @@ RUN if [ -f composer.json ]; then \
# Dar permisos
RUN chmod +x worker.php
# Entrypoint: arregla permisos del volumen montado y ejecuta como www
COPY docker/worker-entrypoint.sh /usr/local/bin/worker-entrypoint.sh
RUN chmod +x /usr/local/bin/worker-entrypoint.sh
# Health check
HEALTHCHECK --interval=60s --timeout=5s --start-period=30s --retries=3 \
CMD pgrep -f "worker.php" || exit 1
USER www
ENTRYPOINT ["/usr/local/bin/worker-entrypoint.sh"]
CMD ["php", "worker.php", "--daemon"]