aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose-test.yaml
blob: 102ce34888f88d06ad3aaf6bb2c285e16a98add4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "3.7"
services:
  devourer:
    image: devourer
    build:
      context: ./devourer
    networks:
      - mainnet
      - tikanet
    depends_on:
      - tika
      - cargo
    ports:
      - "19019:80"
    environment:
      - TIKA_SERVER_ENDPOINT=http://tika:9998
      - AUDIO_DUMP_DIR=/tmp
      - WIKI_SEARCH_URL=https://en.wikipedia.org/w/api.php
      - SERVER_DEPLOYMENT_TYPE=test
      - TIKA_CLIENT_ONLY=True
    cap_drop:
      - ALL
    entrypoint: ["/docker-entrypoint.sh"]
  tika:
    image: apache/tika:2.0.0
    networks:
      - tikanet
    cap_drop:
      - ALL
  cargo:
    image: devourer-cargo
    build:
      context: ./devourer
    networks:
      - mainnet
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      - SERVER_PORT=8080
      - SERVER_VAULT=/cargo-vault
    volumes:
      - cargo-vault:/cargo-vault
    cap_drop:
      - ALL
    cap_add:
      - NET_BIND_SERVICE
    entrypoint: ["/cargo/cargo.py"]
networks:
  mainnet:
  tikanet:
volumes:
  cargo-vault: