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