-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
90 lines (88 loc) · 2.36 KB
/
docker-compose.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
version: '3.9'
services:
opensearch-node1:
build: .
environment:
- discovery.type=single-node
- network.host=0.0.0.0
- 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
- DISABLE_INSTALL_DEMO_CONFIG=true
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
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- opensearch-net
container_name: opensearch-node1
volumes:
- opensearch-data1:/usr/share/opensearch/data
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:1.3.2
container_name: opensearch-dashboards
# ports:
# - 5601:5601
# expose:
# - "5601"
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200"]'
SERVER_BASEPATH: /kibana
SERVER_REWRITEBASEPATH: "true"
volumes:
- ./config/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
networks:
- opensearch-net
nginx:
build:
context: .
dockerfile: ./nginx_conf/Dockerfile
ports:
- 80:80
- 443:443
networks:
- opensearch-net
postgres:
image: postgres:13
volumes:
- keycloak_postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
# healthcheck:
# test: ["CMD", "pg_isready"]
restart: always
networks:
- opensearch-net
keycloak:
image: quay.io/keycloak/keycloak:latest
command: ["-Dkeycloak.frontendUrl=https://localhost/auth"]
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
# KEYCLOAK_LOGLEVEL: DEBUG
ports:
- 8080:8080
- 8443:8443
restart: always
depends_on:
- postgres
networks:
- opensearch-net
volumes:
opensearch-data1:
keycloak_postgres_data:
networks:
opensearch-net: