include: - tests/engine/compose.yaml services: ndc-http: build: context: . ports: - 8080:8080 volumes: - ${CONFIG_PATH:-./tests/configuration}:/etc/connector:ro extra_hosts: - local.hasura.dev=host-gateway environment: OTEL_EXPORTER_OTLP_ENDPOINT: http://local.hasura.dev:4317 HYDRA_PUBLIC_SERVER_URL: http://hydra:4444 HYDRA_ADMIN_SERVER_URL: http://hydra:4445 HASURA_LOG_LEVEL: debug hydra: image: oryd/hydra:v2.2.0 ports: - "4444:4444" # Public port - "4445:4445" # Admin port command: serve -c /etc/config/hydra/hydra.yml all --dev volumes: - type: volume source: hydra-sqlite target: /var/lib/sqlite read_only: false - type: bind source: ./tests/hydra.yml target: /etc/config/hydra/hydra.yml environment: - DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true restart: unless-stopped depends_on: hydra-migrate: required: true condition: service_completed_successfully hydra-migrate: image: oryd/hydra:v2.2.0 environment: - DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true command: migrate -c /etc/config/hydra/hydra.yml sql -e --yes volumes: - type: volume source: hydra-sqlite target: /var/lib/sqlite read_only: false - type: bind source: ./tests/hydra.yml target: /etc/config/hydra/hydra.yml restart: on-failure volumes: hydra-sqlite: