-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
72 lines (70 loc) · 1.97 KB
/
docker-compose.yaml
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
configs:
create_db_sql:
content: |
CREATE DATABASE kuboard DEFAULT CHARACTER SET = 'utf8mb4' DEFAULT COLLATE = 'utf8mb4_unicode_ci';
create user 'kuboard'@'%' identified by 'kuboardpwd';
grant all privileges on kuboard.* to 'kuboard'@'%';
FLUSH PRIVILEGES;
services:
openldap:
image: docker.m.daocloud.io/bitnami/openldap:2.6.7
ports:
- '1389:1389'
- '1636:1636'
environment:
- LDAP_ROOT=dc=kuboard,dc=cn
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=Kuboard123
- LDAP_USERS=user01,user02
- LDAP_PASSWORDS=password1,password2
- LDAP_GROUP=test-group
networks:
kuboard_v4_ldap_example:
aliases:
- openldap
kuboard-ldap-example:
image: swr.cn-east-2.myhuaweicloud.com/kuboard/kuboard-v4-ldap-example:v4
environment:
- LDAP_URL=ldap://openldap:1389
- LDAP_USERNAME=cn=admin,dc=kuboard,dc=cn
- LDAP_PASSWORD=Kuboard123
- LDAP_BASE=ou=users,dc=kuboard,dc=cn
networks:
kuboard_v4_ldap_example:
aliases:
- ldap-example
db:
image: docker.m.daocloud.io/mariadb:11.2.2-jammy
environment:
MARIADB_ROOT_PASSWORD: kuboardpwd
MYSQL_ROOT_PASSWORD: kuboardpwd
TZ: Asia/Shanghai
volumes:
- ./data/kuboard-mariadb:/var/lib/mysql:Z
configs:
- source: create_db_sql
target: /docker-entrypoint-initdb.d/create_db.sql
mode: 0777
networks:
kuboard_v4_ldap_example:
aliases:
- db
kuboard:
image: swr.cn-east-2.myhuaweicloud.com/kuboard/kuboard:v4
environment:
- DB_DRIVER=org.mariadb.jdbc.Driver
- DB_URL=jdbc:mariadb://db:3306/kuboard?serverTimezone=Asia/Shanghai
- DB_USERNAME=kuboard
- DB_PASSWORD=kuboardpwd
restart: always
ports:
- '8000:80'
depends_on:
- db
networks:
kuboard_v4_ldap_example:
aliases:
- kuboard
networks:
kuboard_v4_ldap_example:
driver: bridge