diff --git a/docker-compose.yml b/docker-compose.yml index 95bf5b2ad..73680d662 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,9 @@ version: '3.1' +include: + - "mock-ica/docker-compose-mock-ica.yml" + services: db: @@ -30,80 +33,6 @@ services: ports: - "4566:4566" - haproxy: - image: public.ecr.aws/docker/library/haproxy:2.4 - container_name: orcabus_haproxy - ports: - - "80:80" - volumes: - - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg - - wes: - image: stoplight/prism:4 - platform: linux/amd64 - container_name: orcabus_wes - command: mock -d -h 0.0.0.0 "/openapi/ica/v1/wes.json" - restart: always - ports: - - "4010:4010" - volumes: - - ./openapi/ica:/openapi/ica - - tes: - image: stoplight/prism:4 - platform: linux/amd64 - container_name: orcabus_tes - command: mock -d -h 0.0.0.0 "/openapi/ica/v1/tes.json" - restart: always - ports: - - "4011:4010" - volumes: - - ./openapi/ica:/openapi/ica - - gds: - image: stoplight/prism:4 - platform: linux/amd64 - container_name: orcabus_gds - command: mock -d -h 0.0.0.0 "/openapi/ica/v1/gds.json" - restart: always - ports: - - "4012:4010" - volumes: - - ./openapi/ica:/openapi/ica - - ens: - image: stoplight/prism:4 - platform: linux/amd64 - container_name: orcabus_ens - command: mock -d -h 0.0.0.0 "/openapi/ica/v1/ens.json" - restart: always - ports: - - "4013:4010" - volumes: - - ./openapi/ica:/openapi/ica - - console: - image: stoplight/prism:4 - platform: linux/amd64 - container_name: orcabus_console - command: mock -d -h 0.0.0.0 "/openapi/ica/v1/console.json" - restart: always - ports: - - "4014:4010" - volumes: - - ./openapi/ica:/openapi/ica - - v2: - image: stoplight/prism:4 - platform: linux/amd64 - container_name: orcabus_ica_v2 - command: mock -d -h 0.0.0.0 "/openapi/ica/v2/openapi_public.yaml" - restart: always - ports: - - "4015:4010" - volumes: - - ./openapi/ica:/openapi/ica - filemanager: image: stoplight/prism:4 platform: linux/amd64 diff --git a/mock-ica/docker-compose-mock-ica.yml b/mock-ica/docker-compose-mock-ica.yml new file mode 100644 index 000000000..f3d49d663 --- /dev/null +++ b/mock-ica/docker-compose-mock-ica.yml @@ -0,0 +1,77 @@ +version: '3.1' + +services: + + haproxy: + image: public.ecr.aws/docker/library/haproxy:2.4 + container_name: orcabus_haproxy + ports: + - "80:80" + volumes: + - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg + + wes: + image: stoplight/prism:4 + platform: linux/amd64 + container_name: orcabus_wes + command: mock -d -h 0.0.0.0 "/openapi/ica/v1/wes.json" + restart: always + ports: + - "4010:4010" + volumes: + - ../openapi/ica:/openapi/ica + + tes: + image: stoplight/prism:4 + platform: linux/amd64 + container_name: orcabus_tes + command: mock -d -h 0.0.0.0 "/openapi/ica/v1/tes.json" + restart: always + ports: + - "4011:4010" + volumes: + - ../openapi/ica:/openapi/ica + + gds: + image: stoplight/prism:4 + platform: linux/amd64 + container_name: orcabus_gds + command: mock -d -h 0.0.0.0 "/openapi/ica/v1/gds.json" + restart: always + ports: + - "4012:4010" + volumes: + - ../openapi/ica:/openapi/ica + + ens: + image: stoplight/prism:4 + platform: linux/amd64 + container_name: orcabus_ens + command: mock -d -h 0.0.0.0 "/openapi/ica/v1/ens.json" + restart: always + ports: + - "4013:4010" + volumes: + - ../openapi/ica:/openapi/ica + + console: + image: stoplight/prism:4 + platform: linux/amd64 + container_name: orcabus_console + command: mock -d -h 0.0.0.0 "/openapi/ica/v1/console.json" + restart: always + ports: + - "4014:4010" + volumes: + - ../openapi/ica:/openapi/ica + + v2: + image: stoplight/prism:4 + platform: linux/amd64 + container_name: orcabus_ica_v2 + command: mock -d -h 0.0.0.0 "/openapi/ica/v2/openapi_public.yaml" + restart: always + ports: + - "4015:4010" + volumes: + - ../openapi/ica:/openapi/ica diff --git a/haproxy.cfg b/mock-ica/haproxy.cfg similarity index 100% rename from haproxy.cfg rename to mock-ica/haproxy.cfg