services: opensearch: image: opensearchproject/opensearch:latest environment: - discovery.type=single-node - DISABLE_SECURITY_PLUGIN=true - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" ports: - "9200:9200" healthcheck: test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"] interval: 10s timeout: 5s retries: 10 start_period: 30s opensearch-dashboards: image: opensearchproject/opensearch-dashboards:latest environment: - 'OPENSEARCH_HOSTS=["http://opensearch:9200"]' - DISABLE_SECURITY_DASHBOARDS_PLUGIN=true ports: - "5601:5601" depends_on: opensearch: condition: service_healthy oauth-proxy: build: . ports: - "8443:8443" volumes: - ./config.yaml:/etc/oauth4os/config.yaml:ro depends_on: opensearch: condition: service_healthy healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:8443/health"] interval: 10s timeout: 3s retries: 3