-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
66 lines (61 loc) · 1.15 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
version: '2'
services:
postgres:
image: 'postgres:10.3-alpine'
volumes:
- 'postgres:/var/lib/postgresql/data'
env_file:
- '.env'
website:
depends_on:
- 'postgres'
build: .
ports:
- '3000:3000'
- '1080:1080'
volumes:
- '.:/app'
env_file:
- '.env'
elasticsearch:
image: elasticsearch:6.5.4
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
elasticsearch_test:
image: elasticsearch:6.5.4
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
volumes:
- esdata_test:/usr/share/elasticsearch/data
ports:
- 9201:9200
- 9301:9300
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
volumes:
postgres:
esdata:
esdata_test: