forked from pedrojorgectw/product-bpdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 991 Bytes
/
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
# Can be used to start required services in order to run bpdm in "local" profile for development purposes
services:
postgres:
image: postgres:13.2
container_name: bpdm-postgres
environment:
POSTGRES_USER: bpdm
POSTGRES_PASSWORD:
POSTGRES_DB: bpdm
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U bpdm' ]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- bpdm-postgres-data:/var/lib/postgresql/data
elasticsearch:
image: elasticsearch:7.17.1
container_name: bpdm-elasticsearch
environment:
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
deploy:
resources:
limits:
memory: 2g
volumes:
- bpdm-elasticsearch-data:/usr/share/elasticsearch/data
volumes:
bpdm-postgres-data:
name: bpdm-postgres-data
bpdm-elasticsearch-data:
name: bpdm-elasticsearch-data