blob: 59f5610483a6993e2a1aaa7950c22ac957cf887e [file] [log] [blame]
Akronb03d67b2022-02-02 11:54:53 +01001version: '3.8'
Akron48407a42023-10-24 12:37:04 +02002volumes:
3 example-index:
Akronb03d67b2022-02-02 11:54:53 +01004services:
Akron48407a42023-10-24 12:37:04 +02005 examplecontainer:
Akron392bc872024-02-20 15:31:58 +01006 image: "korap/example-index:0.1"
Akron48407a42023-10-24 12:37:04 +02007 profiles:
8 - example
9 volumes:
10 - "example-index:/kustvakt/index"
11 restart: "no"
Akronb03d67b2022-02-02 11:54:53 +010012 kalamar:
Akron0336ea02022-04-03 21:44:12 +020013 image: "korap/kalamar:latest-conv"
Akronb03d67b2022-02-02 11:54:53 +010014 ports:
15 - "64543:64543"
16 environment:
17 KALAMAR_API: "http://kustvakt:8089/api/"
Akron62f16082022-11-21 16:36:58 +010018 depends_on:
19 - kustvakt
20 profiles:
21 - lite
Akron0268a9f2023-02-06 09:50:54 +010022 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010023 full-init:
24 image: "korap/kalamar:latest-conv"
25 command: super_client_info kalamar /kalamar/data/super_client_info
26 volumes:
27 - type: bind
Akron035ec442023-12-13 13:28:29 +010028 source: "${PWD}/data/"
Akron62f16082022-11-21 16:36:58 +010029 target: "/kalamar/data"
30 profiles:
31 - full
32 - init
33 user: root
Akron0268a9f2023-02-06 09:50:54 +010034 restart: "no"
Akron62f16082022-11-21 16:36:58 +010035 kalamar-full:
36 image: "korap/kalamar:latest-conv"
37 ports:
38 - "64543:64543"
39 environment:
40 KALAMAR_API: "http://kustvakt-full:8089/api/"
41 volumes:
42 - type: bind
Akron035ec442023-12-13 13:28:29 +010043 source: "${PWD}/data/kalamar.production.conf"
Akron62f16082022-11-21 16:36:58 +010044 target: "/kalamar/kalamar.production.conf"
Akron5c859012022-12-06 11:03:32 +010045 - type: bind
Akron035ec442023-12-13 13:28:29 +010046 source: "${PWD}/data/super_client_info"
Akron62f16082022-11-21 16:36:58 +010047 target: /kalamar/super_client_info
48 depends_on:
49 kustvakt-full:
50 condition: service_started
51 full-init:
52 condition: service_completed_successfully
53 profiles:
54 - full
Akron0268a9f2023-02-06 09:50:54 +010055 restart: "unless-stopped"
Akron035ec442023-12-13 13:28:29 +010056 user: root
Akronb03d67b2022-02-02 11:54:53 +010057 kustvakt:
Akron0336ea02022-04-03 21:44:12 +020058 image: "korap/kustvakt:latest"
Akronb03d67b2022-02-02 11:54:53 +010059 expose:
Akron62f16082022-11-21 16:36:58 +010060 - 8089
Akronb03d67b2022-02-02 11:54:53 +010061 volumes:
Marc Kupietz67b47112022-05-29 10:16:26 +020062 - "${INDEX}:/kustvakt/index:z"
Akron62f16082022-11-21 16:36:58 +010063 profiles:
64 - lite
Akron0268a9f2023-02-06 09:50:54 +010065 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010066 kustvakt-full:
67 image: "korap/kustvakt:latest-full"
68 expose:
69 - 8089
Akron035ec442023-12-13 13:28:29 +010070 user: root
Akron62f16082022-11-21 16:36:58 +010071 volumes:
72 - "${INDEX}:/kustvakt/index:z"
Akron5c859012022-12-06 11:03:32 +010073 - type: bind
Akron035ec442023-12-13 13:28:29 +010074 source: "${PWD}/data/"
75 target: /kustvakt/data/
Akron62f16082022-11-21 16:36:58 +010076 profiles:
77 - full
78 depends_on:
79 full-init:
80 condition: service_completed_successfully
Akron0268a9f2023-02-06 09:50:54 +010081 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010082configs:
83 super_client_info:
Akron5c859012022-12-06 11:03:32 +010084 external: true