-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-template.yml
102 lines (101 loc) · 2.76 KB
/
docker-compose-template.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
version: '3'
services:
cass:
image: cassproject/cass:node-1.5.68
container_name: cass
networks:
- esnet
ports:
- 80:80
environment:
- CASS_LOOPBACK=http://cass/api/
- ELASTICSEARCH_ENDPOINT=http://elasticsearch:9200
- PORT=80
# - CASS_OIDC_ENABLED=true # turns on open id login
# - CASS_OIDC_ISSUER_BASE_URL=http://keycloak:8080/auth/realms/master/ # point at your keycloak realm
# - CASS_OIDC_CLIENT_ID=cass # name of your keycloak client
# - CASS_OIDC_SECRET=M2nn59wDxkwUZ9SVEVAJADYnUeKP78vU # secret from your keycloak client
# - CASS_OIDC_BASE_URL=http://localhost/ # where to redirect after login
# - CASS_BANNER_MESSAGE=CUI # message to display in a banner
# - CASS_BANNER_TEXT_COLOR=red # valid css color value for text color of banner message
# - CASS_BANNER_BACKGROUND_COLOR=yellow # valid css color value for background color of banner
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- etc:/app/etc
depends_on:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.16.0
container_name: elasticsearch
networks:
- esnet
environment:
- cluster.name=docker-cluster
- node.name=node-1
- cluster.max_shards_per_node=3000
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- xpack.security.transport.ssl.enabled=false
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms6g -Xmx6g"
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
# UNCOMMENT FOR KEYCLOAK IF USING KEYCLOAK FOR OIDC
# mysql-keycloak:
# image: mysql:5.7
# container_name: mysql-keycloak
# networks:
# - esnet
# volumes:
# - mysql_data:/var/lib/mysql
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: keycloak
# MYSQL_USER: keycloak
# MYSQL_PASSWORD: password
# keycloak:
# image: jboss/keycloak
# container_name: keycloak
# networks:
# - esnet
# ports:
# - 8080:8080
# environment:
# DB_VENDOR: MYSQL
# DB_ADDR: mysql-keycloak
# DB_DATABASE: keycloak
# DB_USER: keycloak
# DB_PASSWORD: password
# KEYCLOAK_USER: cass
# KEYCLOAK_PASSWORD: cass
# KEYCLOAK_HOSTNAME: host.docker.internal
# KEYCLOAK_HTTP_PORT: 8080
# depends_on:
# - mysql-keycloak
volumes:
etc:
driver: local
esdata1:
driver: local
esdata2:
driver: local
mysql_data:
driver: local
mariadb_data:
driver: local
moodle_data:
driver: local
psql_data:
driver: local
networks:
esnet: