-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
110 lines (104 loc) · 2.64 KB
/
docker-compose.yaml
File metadata and controls
110 lines (104 loc) · 2.64 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
services:
postgres:
image: postgres:15-alpine
ports:
- "5432:5432"
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
networks:
- dev_network
opensearch-node1:
image: opensearchproject/opensearch:latest
container_name: opensearch-node1
ports:
- "9200:9200"
- "9600:9600"
env_file:
- .env
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
- plugins.security.ssl.http.enabled=false
- plugins.security.ssl.transport.enabled=false
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health"]
interval: 10s
timeout: 5s
retries: 5
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearch-data1:/usr/share/opensearch/data
expose:
- "9200"
- "9600"
networks:
- dev_network
opensearch-node2:
image: opensearchproject/opensearch:latest
container_name: opensearch-node2
env_file:
- .env
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node2
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
- plugins.security.ssl.http.enabled=false
- plugins.security.ssl.transport.enabled=false
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- opensearch-data2:/usr/share/opensearch/data
expose:
- "9200"
- "9600"
networks:
- dev_network
cognito:
image: jagregory/cognito-local:latest
ports:
- "9229:9229"
volumes:
- ./cognito:/app/.cognito
website:
build:
dockerfile: ../website.Dockerfile
context: ./website
env_file:
- .env
ports:
- "5500:5500"
networks:
- dev_network
volumes:
postgres_data:
opensearch-data1:
opensearch-data2:
networks:
dev_network:
name: dev_network
driver: bridge