# Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Description: Docker compose file for running Swagger UI with the allocation-instruction OpenAPI specification.
# Usage: docker-compose up
version: '3.7'

services:
  swagger-ui:
    image: swaggerapi/swagger-ui
    ports:
      - "8080:8080"
    environment:
      # TODO(DACH-NY/canton-network-node#86): split the standards into separate directories
      # SWAGGER_JSON: /spec/allocation.yaml
      SWAGGER_JSON: /spec/allocation-instruction.yaml
    volumes:
      - ./allocation-instruction.yaml:/spec/allocation-instruction.yaml
