-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
49 lines (45 loc) · 1.12 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
# Builds developing environment for rumors-api
#
version: '2'
services:
db:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2
ports:
- "62222:9200"
volumes:
- "./esdata:/usr/share/elasticsearch/data"
environment:
- "path.repo=/usr/share/elasticsearch/data"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # Prevent elasticsearch eating up too much memory
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.3.2
depends_on:
- db
environment:
ELASTICSEARCH_URL: http://db:9200 # Through docker network, not exposed port
ports:
- "6222:5601"
url-resolver:
image: cofacts/url-resolver
ports:
- "4000:4000"
api:
image: node:18
container_name: rumors-api
depends_on:
- db
working_dir: "/srv/www"
entrypoint: npm run dev
volumes:
- ".:/srv/www"
environment:
ELASTICSEARCH_URL: "http://db:9200"
URL_RESOLVER_URL: "url-resolver:4000"
ports:
- "5000:5000"
site:
image: cofacts/rumors-site:latest-en
ports:
- "3000:3000"
environment:
PUBLIC_API_URL: http://localhost:5000