docker-compose.yml 1.46 KB
Newer Older
Carina Antunes's avatar
Carina Antunes committed
1
# To be used with poetry locally
2
3
#
# Requires:
Carina Antunes's avatar
Carina Antunes committed
4
#  - poetry
5
6
#  - python@3.6.0

7
version: "2.3"
8
9
services:
  elasticsearch:
Carina Antunes's avatar
Carina Antunes committed
10
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.1
11
12
13
14
15
16
17
18
19
    ports:
      - "9200:9200"
      - "9300:9300"
    environment:
      discovery.type: single-node
    networks:
      - default
    volumes:
      - es-data:/usr/share/elasticsearch/data
20
21
22
23
24
    healthcheck:
      test: ["CMD", "curl", "-f", "localhost:9200/_cluster/health?wait_for_status=green"]
      interval: 30s
      timeout: 10s
      retries: 5
25
26

  kibana:
Carina Antunes's avatar
Carina Antunes committed
27
    image: docker.elastic.co/kibana/kibana-oss:7.1.1
28
    depends_on:
29
30
      elasticsearch:
        condition: service_healthy
31
32
33
34
35
36
37
    ports:
      - 5601:5601
    networks:
      - default

  redis:
    image: redis:5.0.6
Carina Antunes's avatar
Carina Antunes committed
38
39
    ports:
      - 6379:6379
40
41
42
43
44
45
46
47
48
49
50
    networks:
      - default

  postgres:
    image: centos/postgresql-95-centos7
    volumes:
      - pgsql-data:/var/lib/pgsql/data
    networks:
      - default
    ports:
      - 5432:5432
Carina Antunes's avatar
Carina Antunes committed
51
52
    env_file:
      - .pipenv.env
53

54
55
56
  rabbitmq:
    image: rabbitmq:3.8.2-management
    env_file:
Carina Antunes's avatar
Carina Antunes committed
57
      - .pipenv.env
58
59
60
61
62
63
64
65
66
67
68
69
70
    restart: "always"
    ports:
      - "15672:15672"
      - "5672:5672"
    networks:
      - default
    healthcheck:
      test: ["CMD", "rabbitmqctl", "node_health_check"]
      interval: 60s
      timeout: 10s
      retries: 3

  tika:
Carina Antunes's avatar
Carina Antunes committed
71
    image: apache/tika:1.24
72
73
74
75
76
    ports:
      - "9998:9998"
    networks:
      - default

77
78
79
80
81
82
networks:
  default:

volumes:
  es-data:
  pgsql-data: