forked from rubyapi/rubyapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
58 lines (55 loc) · 1.35 KB
/
compose.yml
File metadata and controls
58 lines (55 loc) · 1.35 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
services:
search:
image: opensearchproject/opensearch:2.11.0
ports:
- "9600:9600"
- "9200:9200"
environment:
- discovery.type=single-node
- plugins.security.disabled=true
volumes:
- search-data:/usr/share/opensearch/data
healthcheck:
test:
[
"CMD-SHELL",
"curl --fail --silent http://localhost:9600/_cluster/health?wait_for_status=green&timeout=50s || exit 1 ",
]
retries: 3
interval: 5s
timeout: 3s
search-console:
image: opensearchproject/opensearch-dashboards:2.11.0
ports:
- "5601:5601"
environment:
OPENSEARCH_HOSTS: '["https://search:9200"]'
healthcheck:
test:
[
"CMD-SHELL",
"curl -u admin:admin --fail --silent http://localhost:5601/api/status || exit 1",
]
interval: 5s
timeout: 3s
depends_on:
search:
condition: service_healthy
postgres:
image: postgres:17-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: rubyapi
POSTGRES_PASSWORD: rubyapi_password
POSTGRES_DB: rubyapi_development
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rubyapi"]
interval: 5s
timeout: 5s
retries: 5
volumes:
search-data: {}
postgres-data: {}