forked from odota/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.54 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
# 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:4
container_name: odota-redis
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
INIT_POSTGRES_HOST: odota-postgres
INIT_CASSANDRA_HOST: odota-cassandra
volumes:
- .:/usr/src
links:
- postgres
- cassandra
- redis
- parser
container_name: odota-core