Docker-compose for full KorAP
Change-Id: I9f7c0c2f49b38b365312ac421bb53e54af230371
diff --git a/compose.yaml b/compose.yaml
index fe91227..afa4f07 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -6,9 +6,63 @@
- "64543:64543"
environment:
KALAMAR_API: "http://kustvakt:8089/api/"
+ depends_on:
+ - kustvakt
+ profiles:
+ - lite
+ full-init:
+ image: "korap/kalamar:latest-conv"
+ command: super_client_info kalamar /kalamar/data/super_client_info
+ volumes:
+ - type: bind
+ source: "${PWD}"
+ target: "/kalamar/data"
+ profiles:
+ - full
+ - init
+ user: root
+ kalamar-full:
+ image: "korap/kalamar:latest-conv"
+ ports:
+ - "64543:64543"
+ environment:
+ KALAMAR_API: "http://kustvakt-full:8089/api/"
+ volumes:
+ - type: bind
+ source: "${PWD}/kalamar.production.conf"
+ target: "/kalamar/kalamar.production.conf"
+ - type: bind
+ source: "${PWD}/super_client_info"
+ target: /kalamar/super_client_info
+ depends_on:
+ kustvakt-full:
+ condition: service_started
+ full-init:
+ condition: service_completed_successfully
+ profiles:
+ - full
kustvakt:
image: "korap/kustvakt:latest"
expose:
- - "8089"
+ - 8089
volumes:
- "${INDEX}:/kustvakt/index:z"
+ profiles:
+ - lite
+ kustvakt-full:
+ image: "korap/kustvakt:latest-full"
+ expose:
+ - 8089
+ volumes:
+ - "${INDEX}:/kustvakt/index:z"
+ - type: bind
+ source: "${PWD}/super_client_info"
+ target: /kustvakt/client/super_client_info
+ profiles:
+ - full
+ depends_on:
+ full-init:
+ condition: service_completed_successfully
+configs:
+ super_client_info:
+ external: true