This commit is contained in:
Autumn.home 2024-06-12 21:03:10 +08:00
parent 5e92ac59b9
commit ed6620a5a7
1 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,9 @@
version: "3.4"
version: "3.5"
networks:
scopesentry-network:
name: scopesentry-network
driver: bridge
services:
mongodb:
@ -12,6 +17,8 @@ services:
MONGO_INITDB_ROOT_PASSWORD: "mongodb_password"
volumes:
- ./data/mongodb:/data/db
networks:
- scopesentry-network
redis:
image: redis:7.0.11
@ -27,6 +34,8 @@ services:
interval: 10s
timeout: 5s
retries: 5
networks:
- scopesentry-network
scope-sentry:
image: autumn27/scopesentry:latest
@ -49,9 +58,11 @@ services:
REDIS_PASSWORD: "redis_password"
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:8082 || exit 1"]
interval: 30s
interval: 10s
timeout: 10s
retries: 10
networks:
- scopesentry-network
scopesentry-scan:
image: autumn27/scopesentry-scan:latest
@ -71,4 +82,6 @@ services:
redis:
condition: service_healthy
scope-sentry:
condition: service_healthy
condition: service_healthy
networks:
- scopesentry-network