fix: expose additional port and set default value for WEBSERVICE_CRON in docker-compose.yml
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m0s

This commit is contained in:
2025-09-11 11:09:39 -05:00
parent 4f639838f2
commit 7bf32c35c4
2 changed files with 5 additions and 3 deletions

View File

@@ -104,12 +104,14 @@ COPY --from=builder --chown=pa11y:pa11y /app /app
# Switch to non-root user
USER pa11y
# Expose port
# Expose ports
EXPOSE 4000
EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:4000/ || exit 1
CMD wget --no-verbose --tries=1 --spider http://localhost:4000/ && \
wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
# Start the application
CMD ["node", "index.js"]

View File

@@ -33,7 +33,7 @@ services:
WEBSERVICE_DATABASE: mongodb://mongodb:27017/pa11y-webservice
WEBSERVICE_HOST: 0.0.0.0
WEBSERVICE_PORT: 3000
WEBSERVICE_CRON: ${WEBSERVICE_CRON}
WEBSERVICE_CRON: ${WEBSERVICE_CRON:-0 2 * * *}
networks:
- pa11y-network