diff --git a/docker-compose.yml b/docker-compose.yml index ea0fca2e4554561b46eb324e3831f050021eff31..5230afe9e7214a1d116039bf5a10966030fa0d58 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -285,3 +285,28 @@ services: condition: service_started logging: driver: json-file + + dbrepo-search-sync-agent: + restart: "no" + container_name: dbrepo-search-sync-agent + hostname: search-startup-agent + build: ./dbrepo-search-sync-agent + image: dbrepo-search-sync-agent + networks: + core: + env_file: + - .env + healthcheck: + test: wget -qO- localhost:9050/actuator/health/readiness | grep -q "UP" || exit 1 + interval: 10s + timeout: 5s + retries: 12 + depends_on: + dbrepo-metadata-db: + condition: service_healthy + dbrepo-search-db: + condition: service_started + dbrepo-authentication-service: + condition: service_healthy + logging: + driver: json-file \ No newline at end of file