forked from change-metrics/monocle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dev
81 lines (81 loc) · 2.15 KB
/
docker-compose.yml.dev
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
api:
build:
args:
MONOCLE_COMMIT: "${MONOCLE_COMMIT:-HEAD}"
context: '.'
dockerfile: Dockerfile-api
command: monocle api
depends_on:
- elastic
env_file: ".secrets"
environment:
CONFIG: /etc/monocle/config.yaml
ELASTIC_CONN: elastic:9200
healthcheck:
retries: 6
test: "curl --silent --fail localhost:$MONOCLE_API_PORT/health || exit 1"
timeout: "60s"
ports:
- "${MONOCLE_API_ADDR:-0.0.0.0}:${MONOCLE_API_PORT:-9898}:9898"
volumes:
- "./etc:/etc/monocle:z"
crawler:
build:
args:
MONOCLE_COMMIT: "${MONOCLE_COMMIT:-HEAD}"
context: '.'
dockerfile: Dockerfile-api
command: monocle crawler
depends_on:
- api
env_file: ".secrets"
environment:
CONFIG: /etc/monocle/config.yaml
healthcheck:
retries: 6
test: "curl --silent --fail localhost:9001/health || exit 1"
timeout: "60s"
volumes:
- "./etc:/etc/monocle:z"
crawler-legacy:
build: '.'
command: monocle --elastic-conn elastic:9200 crawler --config /etc/monocle/config.yaml
depends_on:
- elastic
env_file: ".secrets"
volumes:
- "./etc:/etc/monocle:z"
- "./dump:/var/lib/crawler:Z"
elastic:
environment:
ES_JAVA_OPTS: "-Xms${ES_XMS:-512m} -Xmx${ES_XMX:-512m}"
discovery.type: single-node
healthcheck:
retries: 6
test: "curl --silent --fail localhost:9200/_cluster/health || exit 1"
timeout: "60s"
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
ports:
- "${MONOCLE_ELASTIC_ADDR:-0.0.0.0}:${MONOCLE_ELASTIC_PORT:-9200}:9200"
ulimits:
nofile:
hard: 65535
soft: 65535
volumes:
- "./data:/usr/share/elasticsearch/data:Z"
web:
build:
args: {}
context: web
dockerfile: Dockerfile-web
depends_on:
- api
environment:
REACT_APP_API_URL: "${MONOCLE_PUBLIC_URL:-http://localhost:8080}"
REACT_APP_TITLE: "${MONOCLE_TITLE}"
ports:
- "${MONOCLE_WEB_ADDR:-0.0.0.0}:${MONOCLE_WEB_PORT:-8080}:8080"
volumes:
- "./web/conf:/etc/nginx/conf.d:z"
version: '3'