init commit
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 58s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 58s
This commit is contained in:
46
docker-compose.yml
Normal file
46
docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:5.0
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- mongodb_data:/data/db
|
||||
environment:
|
||||
MONGO_INITDB_DATABASE: pa11y-webservice
|
||||
networks:
|
||||
- pa11y-network
|
||||
healthcheck:
|
||||
test: echo 'db.runCommand("ping").ok' | mongosh mongodb://localhost:27017/test --quiet
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
pa11y-dashboard:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- ${PA11Y_PORT:-4000}:4000
|
||||
environment:
|
||||
NODE_ENV: ${NODE_ENV:-production}
|
||||
PORT: 4000
|
||||
NOINDEX: ${NOINDEX:-true}
|
||||
READONLY: ${READONLY:-false}
|
||||
SITE_MESSAGE: ${SITE_MESSAGE:-}
|
||||
WEBSERVICE_DATABASE: mongodb://mongodb:27017/pa11y-webservice
|
||||
WEBSERVICE_HOST: 0.0.0.0
|
||||
WEBSERVICE_PORT: 3000
|
||||
WEBSERVICE_CRON: ${WEBSERVICE_CRON:-false}
|
||||
networks:
|
||||
- pa11y-network
|
||||
|
||||
volumes:
|
||||
mongodb_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
pa11y-network:
|
||||
driver: bridge
|
Reference in New Issue
Block a user