blob: e8694b2c9d72b575b1c266f2209418ee726467c8 [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/"
Akron80f22522024-09-02 12:35:21 +020041 KALAMAR_PLUGINS: "Auth"
42 KALAMAR_CLIENT_FILE: "/kalamar/super_client_info"
Akron62f16082022-11-21 16:36:58 +010043 volumes:
44 - type: bind
Akron035ec442023-12-13 13:28:29 +010045 source: "${PWD}/data/kalamar.production.conf"
Akron62f16082022-11-21 16:36:58 +010046 target: "/kalamar/kalamar.production.conf"
Akron5c859012022-12-06 11:03:32 +010047 - type: bind
Akron035ec442023-12-13 13:28:29 +010048 source: "${PWD}/data/super_client_info"
Akron80f22522024-09-02 12:35:21 +020049 target: "/kalamar/super_client_info"
Akron62f16082022-11-21 16:36:58 +010050 depends_on:
51 kustvakt-full:
52 condition: service_started
53 full-init:
54 condition: service_completed_successfully
55 profiles:
56 - full
Akron0268a9f2023-02-06 09:50:54 +010057 restart: "unless-stopped"
Akron035ec442023-12-13 13:28:29 +010058 user: root
Akronb03d67b2022-02-02 11:54:53 +010059 kustvakt:
Akron0336ea02022-04-03 21:44:12 +020060 image: "korap/kustvakt:latest"
Akronb03d67b2022-02-02 11:54:53 +010061 expose:
Akron62f16082022-11-21 16:36:58 +010062 - 8089
Akronb03d67b2022-02-02 11:54:53 +010063 volumes:
Marc Kupietz67b47112022-05-29 10:16:26 +020064 - "${INDEX}:/kustvakt/index:z"
Akron62f16082022-11-21 16:36:58 +010065 profiles:
66 - lite
Akron0268a9f2023-02-06 09:50:54 +010067 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010068 kustvakt-full:
69 image: "korap/kustvakt:latest-full"
70 expose:
71 - 8089
Akron035ec442023-12-13 13:28:29 +010072 user: root
Akron62f16082022-11-21 16:36:58 +010073 volumes:
74 - "${INDEX}:/kustvakt/index:z"
Akron5c859012022-12-06 11:03:32 +010075 - type: bind
Akron035ec442023-12-13 13:28:29 +010076 source: "${PWD}/data/"
77 target: /kustvakt/data/
Akron62f16082022-11-21 16:36:58 +010078 profiles:
79 - full
80 depends_on:
81 full-init:
82 condition: service_completed_successfully
Akron0268a9f2023-02-06 09:50:54 +010083 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010084configs:
85 super_client_info:
Akron5c859012022-12-06 11:03:32 +010086 external: true