forked from odota/core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 1.96 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
# You don't usually need to edit this file.
# If it does not fit your personal use case, docker-compose.override.yml is a preferred way to go.
version: '2'
services:
postgres:
build:
context: .
dockerfile: docker/postgres.dockerfile
image: odota/postgres
container_name: odota-postgres
cassandra:
build:
context: .
dockerfile: docker/cassandra.dockerfile
image: odota/cassandra
container_name: odota-cassandra
redis:
image: redis:5
container_name: odota-redis
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
container_name: odota-elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- bootstrap.system_call_filter=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
parser:
image: odota/parser
container_name: odota-parser
core:
build:
context: .
dockerfile: Dockerfile
image: odota/core
# Override this command with your script if existing does not fit your needs
entrypoint: bash docker/main-launch.sh
ports:
- "5000:5000"
- "5100:5100"
environment:
PARSER_HOST: http://odota-parser:5600
POSTGRES_URL: postgresql://postgres:postgres@odota-postgres/yasp
POSTGRES_TEST_URL: postgresql://postgres:postgres@odota-postgres/yasp_test
READONLY_POSTGRES_URL: postgresql://readonly:readonly@odota-postgres/yasp
REDIS_URL: redis://odota-redis:6379/0
REDIS_TEST_URL: redis://odota-redis:6379/1
CASSANDRA_URL: cassandra://odota-cassandra/yasp
CASSANDRA_TEST_URL: cassandra://odota-cassandra/yasp_test
ELASTICSEARCH_URL: odota-elasticsearch:9200
INIT_POSTGRES_HOST: odota-postgres
INIT_CASSANDRA_HOST: odota-cassandra
volumes:
- .:/usr/src
links:
- postgres
- cassandra
- redis
- elasticsearch
- parser
container_name: odota-core