-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.build.yml
141 lines (133 loc) · 5.2 KB
/
docker-compose.build.yml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3.8'
services:
vibraniumdome-app:
container_name: vibraniumdome-app
build:
context: ./vibraniumdome-app
dockerfile: Dockerfile
args:
DATABASE_URL: ${DATABASE_URL}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
NEXTAUTH_URL: ${NEXTAUTH_URL}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
OPENSEARCH_JWT_HMAC_SIGNING_KEY: ${OPENSEARCH_JWT_HMAC_SIGNING_KEY}
OPENSEARCH_DASHBOARD_URL: ${OPENSEARCH_DASHBOARD_URL}
OPENSEARCH_GOVERNANCE_URL: ${OPENSEARCH_GOVERNANCE_URL}
ports:
- "3000:3000"
env_file:
- ./vibraniumdome-app/.env.example
environment:
- DATABASE_URL=mysql://root:@vibraniumdome-app-db:3306/vibraniumdome
depends_on:
- vibraniumdome-app-db
vibraniumdome-app-db:
container_name: vibraniumdome-app-db
image: mysql:8.1.0
volumes:
- ./vibraniumdome-app/vibraniumdome-db-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: vibraniumdome
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password
vibraniumdome-shields:
container_name: vibraniumdome-shields
build:
context: ./vibraniumdome-shields
dockerfile: Dockerfile
ports:
- "5001:5001"
env_file:
- ./vibraniumdome-shields/.env.example
volumes:
- /tmp:/tmp
depends_on:
- vibraniumdome-app
vibraniumdome-streamlit-app:
container_name: vibraniumdome-streamlit-app
build:
context: ./vibraniumdome-shields/examples/
dockerfile: Dockerfile
ports:
- "8501:8501"
depends_on:
- vibraniumdome-app
env_file:
- ./vibraniumdome-shields/examples/.env.example
vibraniumdome-opensearch-node-1:
image: opensearchproject/opensearch:2.9.0
container_name: vibraniumdome-opensearch-node-1
environment:
- cluster.name=opensearch-cluster
- node.name=vibraniumdome-opensearch-node-1
- discovery.seed_hosts=vibraniumdome-opensearch-node-1,vibraniumdome-opensearch-node-2
- cluster.initial_cluster_manager_nodes=vibraniumdome-opensearch-node-1,vibraniumdome-opensearch-node-2
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- ./vibraniumdome-opensearch/vibraniumdome-opensearch-data1:/usr/share/opensearch/data
- ./vibraniumdome-opensearch/config.yml:/usr/share/opensearch/config/opensearch-security/config.yml
- ./vibraniumdome-opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch-security/opensearch.yml
- ./vibraniumdome-opensearch/log4j2.properties:/usr/share/opensearch/config/log4j2.properties
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
vibraniumdome-opensearch-node-2:
image: opensearchproject/opensearch:2.9.0
container_name: vibraniumdome-opensearch-node-2
environment:
- cluster.name=opensearch-cluster
- node.name=vibraniumdome-opensearch-node-2
- discovery.seed_hosts=vibraniumdome-opensearch-node-1,vibraniumdome-opensearch-node-2
- cluster.initial_cluster_manager_nodes=vibraniumdome-opensearch-node-1,vibraniumdome-opensearch-node-2
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ./vibraniumdome-opensearch/vibraniumdome-opensearch-data2:/usr/share/opensearch/data
- ./vibraniumdome-opensearch/config.yml:/usr/share/opensearch/config/opensearch-security/config.yml
- ./vibraniumdome-opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch-security/opensearch.yml
- ./vibraniumdome-opensearch/log4j2.properties:/usr/share/opensearch/config/log4j2.properties
vibraniumdome-opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.9.0
container_name: vibraniumdome-opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["https://vibraniumdome-opensearch-node-1:9200","https://vibraniumdome-opensearch-node-2:9200"]'
volumes:
- ./vibraniumdome-opensearch/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
vibraniumdome-opensearch-seeder:
image: centos
container_name: vibraniumdome-opensearch-seeder
volumes:
- ./vibraniumdome-opensearch/dashboard.ndjson:/dashboard.ndjson
- ./vibraniumdome-opensearch/opensearch-seed.sh:/opensearch-seed.sh
command: /bin/bash /opensearch-seed.sh
depends_on:
- vibraniumdome-opensearch-node-1
- vibraniumdome-opensearch-node-2
- vibraniumdome-opensearch-dashboards
volumes:
vibraniumdome-opensearch-data1:
vibraniumdome-opensearch-data2:
vibraniumdome-db-data: