-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (41 loc) · 1.27 KB
/
docker-compose.yaml
File metadata and controls
42 lines (41 loc) · 1.27 KB
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
services:
lambda:
build:
context: .
ports:
- "8080:8080"
volumes:
- ./src:/var/task/src
healthcheck:
test: [ "CMD", "curl", "-sf", "http://localhost:8080/2015-03-31/functions/function/invocations", "-XPOST", "-d", "{}" ]
opensearch-node:
image: opensearchproject/opensearch:3.0.0
container_name: opensearch-node
environment:
- cluster.name=ttc-opensearch-cluster
- node.name=opensearch-node
- discovery.type=single-node
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- DISABLE_SECURITY_PLUGIN=true # Disable security for local dev
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PWD-TEST_PSWD!} # Required for 2.12+, may need to store this as a secret and pull from there
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
networks:
- opensearch-net
healthcheck:
test: ["CMD", "curl", "-k", "-u", "admin:${OPENSEARCH_PWD-TEST_PSWD!}", "--fail", "--silent", "https://localhost:9200/_cluster/health?wait_for_status=green"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
volumes:
opensearch-data:
networks:
opensearch-net: