blob: c10f190e3c566a8be320eeaf22f149fd1a915f85 [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:
6 image: "korap/example-index:latest"
7 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:
Akron48407a42023-10-24 12:37:04 +020021 - example
Akron62f16082022-11-21 16:36:58 +010022 - lite
Akron0268a9f2023-02-06 09:50:54 +010023 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010024 full-init:
25 image: "korap/kalamar:latest-conv"
26 command: super_client_info kalamar /kalamar/data/super_client_info
27 volumes:
28 - type: bind
29 source: "${PWD}"
30 target: "/kalamar/data"
31 profiles:
32 - full
33 - init
34 user: root
Akron0268a9f2023-02-06 09:50:54 +010035 restart: "no"
Akron62f16082022-11-21 16:36:58 +010036 kalamar-full:
37 image: "korap/kalamar:latest-conv"
38 ports:
39 - "64543:64543"
40 environment:
41 KALAMAR_API: "http://kustvakt-full:8089/api/"
42 volumes:
43 - type: bind
44 source: "${PWD}/kalamar.production.conf"
45 target: "/kalamar/kalamar.production.conf"
Akron5c859012022-12-06 11:03:32 +010046 - type: bind
47 source: "${PWD}/super_client_info"
Akron62f16082022-11-21 16:36:58 +010048 target: /kalamar/super_client_info
49 depends_on:
50 kustvakt-full:
51 condition: service_started
52 full-init:
53 condition: service_completed_successfully
54 profiles:
55 - full
Akron0268a9f2023-02-06 09:50:54 +010056 restart: "unless-stopped"
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
70 volumes:
71 - "${INDEX}:/kustvakt/index:z"
Akron5c859012022-12-06 11:03:32 +010072 - type: bind
73 source: "${PWD}/super_client_info"
Akron62f16082022-11-21 16:36:58 +010074 target: /kustvakt/client/super_client_info
75 profiles:
76 - full
77 depends_on:
78 full-init:
79 condition: service_completed_successfully
Akron0268a9f2023-02-06 09:50:54 +010080 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010081configs:
82 super_client_info:
Akron5c859012022-12-06 11:03:32 +010083 external: true