-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
111 lines (102 loc) · 2.2 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3'
services:
redis:
env_file:
- .env.e2e
extends:
file: tools/docker/docker-compose.shared.yml
service: redis
command: sh -c 'redis-server --requirepass $${REDIS_PASSWORD}'
rabbit:
env_file:
- .env
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USERNAME}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
- RABBITMQ_DEFAULT_VHOST=/
ports:
- 15672:15672
- 5672:5672
extends:
file: tools/docker/docker-compose.shared.yml
service: rabbit
database:
image: postgres
env_file:
- .env
ports:
- 5432:5432
volumes:
- postgre_data:/var/lib/postgresql/data
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME}"]
interval: 10s
timeout: 5s
retries: 3
elastic:
ports:
- 9200:9200
extends:
file: tools/docker/docker-compose.shared.yml
service: elastic-single
store:
depends_on:
database:
condition: service_healthy
rabbit:
condition: service_healthy
elastic:
condition: service_healthy
env_file:
- .env
build:
context: ./
dockerfile: tools/docker/store/Dockerfile
target: dev
ports:
- 3000:3000
volumes:
- .:/app
- .env:/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
build:
context: ./
dockerfile: tools/docker/store/Dockerfile
target: dev
volumes:
- .:/app
environment:
IS_WORKER: 'true'
DW_SOURCES: 'KE.3,KE.007,KE.006'
ID_RESOLVER: 'http://tun.fi/'
command: 'nx serve store-worker'
volumes:
elastic_data:
driver: local
postgre_data:
driver: local
store_node_modules:
driver: local
redis:
driver: local