fix: worker logs permission denied + migration AFTER password
This commit is contained in:
+6
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user