-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (53 loc) · 1.56 KB
/
docker-compose.dev.yml
File metadata and controls
57 lines (53 loc) · 1.56 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
version: "3.8"
name: oni
networks:
oni:
name: oni
driver: bridge
volumes:
postgres_data:
opensearch_data:
services:
db:
image: postgres:16-alpine
hostname: db
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
POSTGRES_DB: "oni"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: "trust"
PGDATA: /postgresql/data
volumes:
- postgres_data:/postgresql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-q"]
interval: 30s
timeout: 10s
retries: 5
opensearch:
image: opensearchproject/opensearch:2.13.0
hostname: opensearch
tty: true
environment:
- TERM="xterm-256color"
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms2g -Xmx2g
- _JAVA_OPTIONS=-XX:UseSVE=0 #this fixes Mac M4 bug
#- xpack.security.enabled=false # for elasticsearch
- plugins.security.disabled=true # for opensearch
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=ASd8asfhqu2i3r@#$1546
volumes:
- opensearch_data:/usr/share/opensearch/data
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 10s
retries: 5