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
73 lines (70 loc) · 1.78 KB
/
Copy pathcompose.yml
File metadata and controls
73 lines (70 loc) · 1.78 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
66
67
68
69
70
71
72
73
services:
search:
image: opensearchproject/opensearch:3.5.0
init: true
ports:
- "127.0.0.1:9600:9600"
- "127.0.0.1:9200:9200"
environment:
- discovery.type=single-node
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=RubyApi-Local-OpenSearch-2026!
volumes:
- search-data:/usr/share/opensearch/data
healthcheck:
test:
[
"CMD",
"curl",
"--fail",
"--silent",
"--insecure",
"--user",
"admin:RubyApi-Local-OpenSearch-2026!",
"https://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=50s",
]
retries: 3
interval: 5s
timeout: 60s
start_period: 60s
search-console:
image: opensearchproject/opensearch-dashboards:3.5.0
ports:
- "127.0.0.1:5601:5601"
environment:
OPENSEARCH_HOSTS: '["https://search:9200"]'
OPENSEARCH_USERNAME: admin
OPENSEARCH_PASSWORD: RubyApi-Local-OpenSearch-2026!
healthcheck:
test:
[
"CMD",
"curl",
"--fail",
"--silent",
"--user",
"admin:RubyApi-Local-OpenSearch-2026!",
"http://localhost:5601/api/status",
]
interval: 5s
timeout: 3s
depends_on:
search:
condition: service_healthy
postgres:
image: postgres:17-alpine
ports:
- "127.0.0.1:${DB_PORT:-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 -d rubyapi_development"]
interval: 5s
timeout: 5s
retries: 5
volumes:
search-data: {}
postgres-data: {}