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
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m0s
This commit is contained in:
@@ -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"]
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user