-
Notifications
You must be signed in to change notification settings - Fork 1
/
auth.yml
92 lines (84 loc) · 1.86 KB
/
auth.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
# auth
version: "3"
services:
mysql:
image: mysql:5
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: ${AUTH_MYSQL_PASSWORD}
volumes:
- authdb:/var/lib/mysql
deploy:
resources:
limits:
cpus: "0.25"
memory: 1G
mysqldump:
image: bigtruedata/mysqldump:3.3
environment:
MYSQLDUMP_OPTIONS: --host mysql --user keycloak --password ${AUTH_MYSQL_PASSWORD}
DATABASE_NAME: keycloak
TIME_ZONE: Asia/Kolkata
volumes:
- authdbdump:/dump
deploy:
restart_policy:
condition: any
resources:
limits:
cpus: "0.1"
memory: 100M
# pma:
# image: phpmyadmin/phpmyadmin
# ports:
# - "8081:80"
# environment:
# PMA_HOST: mysql
keycloak:
image: felicityiiith/keycloak
ports:
- "8080:8080"
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: ${AUTH_KEYCLOAK_PASSWORD}
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: ${AUTH_MYSQL_PASSWORD}
MYSQL_PORT_3306_TCP_ADDR: mysql
MYSQL_PORT_3306_TCP_PORT: 3306
PROXY_ADDRESS_FORWARDING: 'true'
deploy:
restart_policy:
condition: any
resources:
limits:
cpus: "0.25"
memory: 1G
depends_on:
- mysql
- ldap
ldap:
image: dinkel/openldap
# ports:
# - "389:389"
environment:
SLAPD_ORGANISATION: Felicity
SLAPD_DOMAIN: felicity.iiit.ac.in
SLAPD_PASSWORD: ${AUTH_LDAP_PASSWORD}
volumes:
- ldapconf:/etc/ldap/
- ldapdata:/var/lib/ldap
deploy:
restart_policy:
condition: any
resources:
limits:
cpus: "0.1"
memory: 100M
volumes:
authdb:
ldapdata:
ldapconf:
authdbdump: