| Marc Kupietz | b769699 | 2024-03-18 17:41:15 +0100 | [diff] [blame] | 1 | version: '3.8' |
| 2 | volumes: |
| 3 | example-index: |
| 4 | services: |
| 5 | kalamar: |
| 6 | image: "korap/kalamar:dnb" |
| 7 | ports: |
| Marc Kupietz | 3c72db8 | 2024-04-19 12:01:32 +0200 | [diff] [blame] | 8 | - "80:64543" |
| Marc Kupietz | b769699 | 2024-03-18 17:41:15 +0100 | [diff] [blame] | 9 | environment: |
| 10 | KALAMAR_API: "http://kustvakt:8089/api/" |
| 11 | depends_on: |
| 12 | - kustvakt |
| 13 | profiles: |
| 14 | - lite |
| 15 | restart: "unless-stopped" |
| 16 | full-init: |
| 17 | image: "korap/kalamar:latest-conv" |
| 18 | command: super_client_info kalamar /kalamar/data/super_client_info |
| 19 | volumes: |
| 20 | - type: bind |
| 21 | source: "${PWD}/data/" |
| 22 | target: "/kalamar/data" |
| 23 | profiles: |
| 24 | - full |
| 25 | - init |
| 26 | user: root |
| 27 | restart: "no" |
| 28 | kalamar-full: |
| 29 | image: "korap/kalamar:latest-conv" |
| 30 | ports: |
| 31 | - "64543:64543" |
| 32 | environment: |
| 33 | KALAMAR_API: "http://kustvakt-full:8089/api/" |
| 34 | volumes: |
| 35 | - type: bind |
| 36 | source: "${PWD}/data/kalamar.production.conf" |
| 37 | target: "/kalamar/kalamar.production.conf" |
| 38 | - type: bind |
| 39 | source: "${PWD}/data/super_client_info" |
| 40 | target: /kalamar/super_client_info |
| 41 | depends_on: |
| 42 | kustvakt-full: |
| 43 | condition: service_started |
| 44 | full-init: |
| 45 | condition: service_completed_successfully |
| 46 | profiles: |
| 47 | - full |
| 48 | restart: "unless-stopped" |
| 49 | user: root |
| 50 | kustvakt: |
| 51 | image: "korap/kustvakt:latest" |
| 52 | expose: |
| 53 | - 8089 |
| 54 | volumes: |
| 55 | - "${PWD}/dnb.index:/kustvakt/index:z" |
| 56 | profiles: |
| 57 | - lite |
| 58 | restart: "unless-stopped" |
| 59 | kustvakt-full: |
| 60 | image: "korap/kustvakt:latest-full" |
| 61 | expose: |
| 62 | - 8089 |
| 63 | user: root |
| 64 | volumes: |
| 65 | - "${PWD}/dnb.index:/kustvakt/index:z" |
| 66 | - type: bind |
| 67 | source: "${PWD}/data/" |
| 68 | target: /kustvakt/data/ |
| 69 | profiles: |
| 70 | - full |
| 71 | depends_on: |
| 72 | full-init: |
| 73 | condition: service_completed_successfully |
| 74 | restart: "unless-stopped" |
| 75 | configs: |
| 76 | super_client_info: |
| 77 | external: true |