-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (57 loc) · 1.25 KB
/
docker-compose.yaml
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
version: '3'
services:
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest
container_name: opensearch-dashboards
environment:
OPENSEARCH_HOSTS: "https://opensearch:9200"
ports:
- 5601:5601
links:
- opensearch
networks:
- sandbox
opensearch:
build:
context: .
dockerfile: Dockerfile
container_name: opensearch
environment:
- cluster.name=docker-cluster
- node.name=os-node
- cluster.initial_master_nodes=os-node
- bootstrap.memory_lock=true
- http.host=0.0.0.0
- transport.host=127.0.0.1
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- $PWD/.local/opensearch:/usr/share/opensearch/data
ports:
- 9200:9200
networks:
- sandbox
searcher:
env_file: ./.env
build:
context: ./api
dockerfile: Dockerfile
container_name: searcher
environment:
OPEN_SEARCH_ADDRESS: "https://opensearch:9200"
USER_NAME: ${USER_NAME}
PASSWORD: ${PASSWORD}
PORT: 4646
ports:
- 4646:4646
depends_on:
- opensearch
volumes:
- .:/go/src/app
networks:
- sandbox
networks:
sandbox: