0
|
1 |
version: '2.1' |
|
2 |
|
|
3 |
services: |
|
4 |
|
|
5 |
elasticsearch: |
|
6 |
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4 |
|
7 |
environment: |
|
8 |
# - "transport.host=127.0.0.1" |
|
9 |
# - "http.cors.enabled=true" |
|
10 |
# - "http.cors.allow-origin=*" |
|
11 |
# - "http.cors.allow-headers=Authorization" |
|
12 |
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m" |
|
13 |
- "discovery.type=single-node" |
|
14 |
ports: |
|
15 |
- 9200:9200 |
|
16 |
- 9300:9300 |
|
17 |
volumes: |
|
18 |
- /usr/share/elasticsearch/data |
|
19 |
|
|
20 |
postgres: |
|
21 |
image: postgres:alpine |
|
22 |
ports: |
|
23 |
- 5432:5432 |
|
24 |
volumes: |
|
25 |
- /var/lib/postgresql/data |
|
26 |
|
|
27 |
|