forked from dockstore/dockstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (59 loc) · 1.68 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
#this file sets up elasticsearch, kibana, and postgres containers for running dockstore locally
#dockstore can run without elasticsearch but the search page requires elasticsearch to be running
#kibana can be used alongside elasticsearch as a visual interface for the indices and send queries directly
#this only brings up the postgres container, not the actual database
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- xpack.ml.enabled=false
- script.allowed_types= none
- script.allowed_contexts= none
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
# uncomment to run a kibana instance
# kib01:
# image: docker.elastic.co/kibana/kibana:6.8.3
# container_name: kib01
# ports:
# - 5601:5601
# environment:
# ELASTICSEARCH_URL: http://es01:9200
# ELASTICSEARCH_HOSTS: http://es01:9200
# networks:
# - elastic
postgres_db:
image: postgres:11.8
container_name: postgres1
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
volumes:
data01:
driver: local
db_data:
networks:
elastic:
driver: bridge