forked from sign0/navitia-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-instances.jinja2
32 lines (28 loc) · 998 Bytes
/
docker-instances.jinja2
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
version: '3'
services:
{% for instance in instances %}
kraken-{{instance}}:
image: navitia/kraken:${TAG}
environment:
- KRAKEN_GENERAL_instance_name={{instance}}
- KRAKEN_GENERAL_database=/srv/ed/output/{{instance}}.nav.lz4
- KRAKEN_BROKER_host=rabbitmq
{% for parameter in kraken_env %}
- {{ parameter }}
{% endfor %}
volumes:
- tyr_data:/srv/ed:ro
expose:
- "30000"
{% endfor %}
jormungandr:
environment:
{% for instance in instances %}
- JORMUNGANDR_INSTANCE_{{instance}}={"key":"{{instance}}","zmq_socket":"tcp://kraken-{{instance}}:30000"{{jormun_env}}}
{% endfor %}
- JORMUNGANDR_CACHE_CONFIGURATION={"CACHE_TYPE":"simple", "CACHE_KEY_PREFIX":"jormungandr.", "TIMEOUT_PTOBJECTS":0.001, "TIMEOUT_AUTHENTICATION":0.001, "TIMEOUT_PARAMS":0.001, "TIMEOUT_TIMEO":60, "TIMEOUT_SYNTHESE":30}
instances_configurator:
environment:
{% for instance in instances %}
- INSTANCE_{{instance}}=
{% endfor %}