forked from HospitalRun/hospitalrun-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (69 loc) · 1.54 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
version: "2.0"
services:
nginx:
build:
args:
DOMAIN_NAME: www.example.com
context: nginx/.
dockerfile: Dockerfile
links:
- hospitalrun
ports:
- "8055:80"
- "443:443"
image: hospitalrun_nginx
volumes:
- ./data/nginx/letsencrypt:/etc/letsencrypt
hospitalrun:
container_name: hospitalrun
build: .
image: hospitalrun
links:
- couchdb
- elasticsearch
- logstash
depends_on:
- couchdb
- elasticsearch
- logstash
container_name: hospitalrun
couchdb:
container_name: couchdb_hr
image: couchdb:1.7.1
volumes:
- ./data/couchdb:/usr/local/var/lib/couchdb
ports:
- "5985:5984"
elasticsearch:
container_name: elasticsearch_hr
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.1
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- "9201:9200"
environment:
- http.host=0.0.0.0
- transport.host=127.0.0.1
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- IPC_LOCK
logstash:
container_name: logstash_hr
build: logstash/
image: hospitalrun_logstash
volumes:
- ./logstash/pipeline/:/usr/share/logstash/pipeline/
- ./logstash/config/:/usr/share/logstash/config/
links:
- couchdb
- elasticsearch