aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
blob: 8bc5732d67edbed88678e0e8315f5e866aeeaf47 (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
53
54
55
56
57
58
59
60
version: "3.7"
services:
  devourer:
    image: devourer
    build:
      context: .
    networks:
      - mainnet
      - tikanet
    depends_on:
      - tika
      # - cargo
    ports:
      - "9009: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=deployment
      - TIKA_CLIENT_ONLY=True
      - TRANSFORMERS_CACHE=/huggingface/cache/
    cap_drop:
      - ALL
    entrypoint: ["/docker-entrypoint.sh"]
    volumes:
      - devourer-nltk-data:/root/nltk_data/
      - devourer-hg-cache:/huggingface/cache/
      - /etc/letsencrypt/live/mila.terminaldweller.com/privkey.pem:/etc/letsencrypt/live/mila.terminaldweller.com/privkey.pem
      - /etc/letsencrypt/live/mila.terminaldweller.com/fullchain.pem:/etc/letsencrypt/live/mila.terminaldweller.com/fullchain.pem
    restart: unless-stopped
  tika:
    image: apache/tika:2.0.0
    networks:
      - tikanet
    cap_drop:
      - ALL
    restart: unless-stopped
  # cargo:
  #   image: devourer-cargo
  #   build:
  #     context: ./devourer
  #   networks:
  #     - mainnet
  #   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:
  devourer-nltk-data:
  devourer-hg-cache: