diff --git a/single-host-deployment.yml b/single-host-deployment.yml index 50d4d6b..6b80e39 100644 --- a/single-host-deployment.yml +++ b/single-host-deployment.yml @@ -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 \ No newline at end of file + condition: service_healthy + networks: + - scopesentry-network