-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (64 loc) · 1.87 KB
/
docker-compose.yaml
File metadata and controls
65 lines (64 loc) · 1.87 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
demo-site:
image: node:22-alpine3.22
working_dir: /app
volumes:
- ./frontend:/app
- /app/node_modules
command: sh -c "npm i && npm run dev"
ports:
- "8081:8081"
depends_on:
- api-service
api-service:
image: python:3.12-slim
platform: linux/amd64
command: sh -c "pip install --upgrade pip && pip install --group dev && fastapi dev src/api/main.py --host 0.0.0.0 --port 8080 --reload"
working_dir: /app
volumes:
- ./packages/api:/app
ports:
- "8080:8080"
environment:
- PIP_ROOT_USER_ACTION=ignore
- ENV=local
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: