This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
111 lines (102 loc) · 2.1 KB
/
docker-compose.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '2.3'
services:
proxy:
image: abiosoft/caddy:0.11.0-no-stats
volumes:
- ./proxy/Caddyfile:/etc/Caddyfile
- caddycerts:/root/.caddy # cache lets encrypt certs
- frontend:/srv/frontend
#- ./frontend/dist:/srv/frontend
environment:
- WEB_DOMAIN
- ACME_AGREE
- API_PORT=9000
ports:
- "2015:2015"
- "80:80"
- "443:443"
networks:
- front
depends_on:
- frontend
- controller
- kibana
frontend:
build:
context: frontend/
volumes:
- frontend:/dist:ro
controller:
build:
context: controller/
environment:
- AZURE_SUBKEY
- GCS_SEARCHID
- GCS_APIKEY
- ELASTIC_HOST
- WEB_DOMAIN
- LOG_LEVEL
- ELASTIC_HOST=elasticsearch:9200
- API_PORT=9000
- NODE_ENV=production
depends_on:
- elasticsearch
networks:
- front
- back
crawler:
build:
context: crawler/
depends_on:
- elasticsearch
environment:
- FETCH_THREADS
- CRAWLER_MEMORY
- PROXY_HOST
- PROXY_PORT
- PROXY_TYPE
- ES_ADDRESS=http://elasticsearch:9200/
networks:
- back
restart: always
elasticsearch:
build:
context: elasticsearch/
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./elasticsearch/snapshots/:/mount/snapshots/
- elasticdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 3s
retries: 3
start_period: 15s
networks:
- back
kibana:
build:
context: kibana/
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
ports:
- "5601:5601"
networks:
- front
- back
depends_on:
- elasticsearch
networks:
back:
driver: bridge
front:
driver: bridge
volumes:
elasticdata:
frontend:
caddycerts: