blob: 5f4c7307630e25d55625f387d18a1c565d3bb92e [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
Akron035ec442023-12-13 13:28:29 +010029 source: "${PWD}/data/"
Akron62f16082022-11-21 16:36:58 +010030 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
Akron035ec442023-12-13 13:28:29 +010044 source: "${PWD}/data/kalamar.production.conf"
Akron62f16082022-11-21 16:36:58 +010045 target: "/kalamar/kalamar.production.conf"
Akron5c859012022-12-06 11:03:32 +010046 - type: bind
Akron035ec442023-12-13 13:28:29 +010047 source: "${PWD}/data/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"
Akron035ec442023-12-13 13:28:29 +010057 user: root
Akronb03d67b2022-02-02 11:54:53 +010058 kustvakt:
Akron0336ea02022-04-03 21:44:12 +020059 image: "korap/kustvakt:latest"
Akronb03d67b2022-02-02 11:54:53 +010060 expose:
Akron62f16082022-11-21 16:36:58 +010061 - 8089
Akronb03d67b2022-02-02 11:54:53 +010062 volumes:
Marc Kupietz67b47112022-05-29 10:16:26 +020063 - "${INDEX}:/kustvakt/index:z"
Akron62f16082022-11-21 16:36:58 +010064 profiles:
65 - lite
Akron0268a9f2023-02-06 09:50:54 +010066 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010067 kustvakt-full:
68 image: "korap/kustvakt:latest-full"
69 expose:
70 - 8089
Akron035ec442023-12-13 13:28:29 +010071 user: root
Akron62f16082022-11-21 16:36:58 +010072 volumes:
73 - "${INDEX}:/kustvakt/index:z"
Akron5c859012022-12-06 11:03:32 +010074 - type: bind
Akron035ec442023-12-13 13:28:29 +010075 source: "${PWD}/data/"
76 target: /kustvakt/data/
Akron62f16082022-11-21 16:36:58 +010077 profiles:
78 - full
79 depends_on:
80 full-init:
81 condition: service_completed_successfully
Akron0268a9f2023-02-06 09:50:54 +010082 restart: "unless-stopped"
Akron62f16082022-11-21 16:36:58 +010083configs:
84 super_client_info:
Akron5c859012022-12-06 11:03:32 +010085 external: true