docker-compose.yml 1.79 KB
Newer Older
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
1
2
3
4
5
version: '2'

services:
  sefarad:
    build: .
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
6
    image: registry.cluster.gsi.dit.upm.es/sefarad/dashboard-reddit
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
7
8
9
10
    ports:
     - "8080:8080"
    volumes:
     - .:/usr/src/app
11
12
    environment:
     - ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
13
     - FUSEKI_ENDPOINT_DASHBOARD=${FUSEKI_ENDPOINT_DASHBOARD}
14
15
16
    networks:
      - sefarad-network

J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
17
  elasticsearch:
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
18
19
20
21
22
23
24
25
26
27
28
29
    image: "docker.elastic.co/elasticsearch/elasticsearch:5.5.2"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    environment:
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=false
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - "xpack.security.enabled=false"
      - "http.cors.enabled=true"
      - 'http.cors.allow-origin=*'
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
30
    volumes:
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
31
      - esdata:/usr/share/elasticsearch/data/
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
32

J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
33
    ports:
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
61
62
63
      - 19200:9200
      - 19300:9300
    networks:
      - sefarad-network


  fuseki:
    image: stain/jena-fuseki
    ports:
      - "13030:3030"
    volumes:
     - ./fuseki:/fuseki
    environment:
      - ADMIN_PASSWORD=${FUSEKI_PASSWORD}
    networks:
      - sefarad-network

  luigi:
    build: ./luigi/
    image: registry.cluster.gsi.dit.upm.es/sefarad/gsicrawler/luigi
    volumes:
      - ./luigi:/usr/src/app
    ports:
      - "8082:8082"
    networks:
      - sefarad-network
    environment:
      - ES_ENDPOINT=${ES_ENDPOINT}
      - ES_PORT=${ES_PORT}
      - FUSEKI_ENDPOINT_EXTERNAL=${FUSEKI_ENDPOINT_EXTERNAL}
64
      - API_KEY_MEANING_CLOUD=${API_KEY_MEANING_CLOUD}
Alberto Pascual's avatar
Alberto Pascual committed
65
66
67
68
      - TWITTER_CONSUMER_KEY=${TWITTER_CONSUMER_KEY}
      - TWITTER_CONSUMER_SECRET=${TWITTER_CONSUMER_SECRET}
      - TWITTER_ACCESS_TOKEN=${TWITTER_ACCESS_TOKEN}
      - TWITTER_ACCESS_TOKEN_SECRET=${TWITTER_ACCESS_TOKEN_SECRET}
69
70
71

    depends_on:
      - elasticsearch
militarpancho's avatar
militarpancho committed
72

73
74
75
networks:
  sefarad-network:
    driver: bridge
militarpancho's avatar
militarpancho committed
76

J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
77
volumes:
78
  esdata: