-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.production.yml
80 lines (72 loc) · 1.56 KB
/
docker-compose.production.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
version: '3'
services:
rabbit:
env_file:
- .env.production
environment:
- RABBITMQ_DEFAULT_VHOST=/
ports:
- 15672:15672
- 5672:5672
extends:
file: tools/docker/docker-compose.shared.yml
service: rabbit
elastic:
ports:
- 9200:9200
extends:
file: tools/docker/docker-compose.shared.yml
service: elastic-single
store:
depends_on:
rabbit:
condition: service_healthy
elastic:
condition: service_healthy
env_file:
- .env.production
build:
context: ./
dockerfile: tools/docker/store/Dockerfile
target: dev
ports:
- 3000:3000
volumes:
- .:/app
- ./.env.production:/app/.env
restart: on-failure
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail localhost:3000/status || exit 1" ]
interval: 10s
timeout: 10s
retries: 7
kibana:
image: kibana:7.11.2
depends_on:
- elastic
ports:
- 5601:5601
environment:
SERVER_NAME: kibana
ELASTICSEARCH_HOSTS: http://elastic:9200
store-worker:
depends_on:
store:
condition: service_healthy
env_file:
- .env.production
build:
context: ./
dockerfile: tools/docker/store/Dockerfile
target: dev
volumes:
- .:/app
- ./.env.production:/app/.env
environment:
IS_WORKER: 'true'
DW_SOURCES: 'KE.388,KE.441'
ID_RESOLVER: 'http://tun.fi/'
command: 'npm run nx -- serve store-worker'
volumes:
elastic_data:
driver: local