-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
133 lines (132 loc) · 4.02 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
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
version: '3'
services:
cass:
build:
context: .
dockerfile: docker/standalone/node/Dockerfile
container_name: cass
networks:
- esnet
ports:
- 80:80
environment:
- CASS_LOOPBACK=http://cass/api/
- ELASTICSEARCH_ENDPOINT=http://elasticsearch-cass: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-cass
cassl:
build:
context: .
dockerfile: docker/standalone/node/Dockerfile
container_name: cassl
networks:
- esnet
ports:
- 443:443
environment:
- CASS_LOOPBACK=https://cassl/api/
- ELASTICSEARCH_ENDPOINT=http://elasticsearch-cass:9200
- HTTPS=true
- HTTP2=true
- NODE_EXTRA_CA_CERTS=ca.crt
# - 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-cass
elasticsearch-cass:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.3
container_name: elasticsearch-cass
networks:
- esnet
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
- xpack.security.http.ssl.enabled=false
- xpack.security.transport.ssl.enabled=false
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
# UNCOMMENT FOR KEYCLOAK IF USING 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: