-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
54 lines (51 loc) · 1.15 KB
/
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
name: openldap-mediawiki
services:
wiki:
build:
dockerfile: ./wiki/Dockerfile
args:
LDAP_PROVIDER_TARBALL: ${LDAP_PROVIDER_TARBALL}
PLUGGABLE_AUTH_TARBALL: ${PLUGGABLE_AUTH_TARBALL}
LDAP_AUTHENTICATION2_TARBALL: ${LDAP_AUTHENTICATION2_TARBALL}
hostname: wiki.cclub
logging:
driver: local
options:
mode: non-blocking
ports:
- 8080:80
volumes:
- images:/var/www/html/images
- ./wiki/config/LocalSettings.php:/var/www/html/LocalSettings.php
ldap:
build:
context: ./
dockerfile: ./ldap/Dockerfile
hostname: ldap.cclub
secrets:
- source: ldap_private_key
target: ldapskey.key
logging:
driver: local
options:
mode: non-blocking
database:
image: mariadb
hostname: db.cclub
logging:
driver: local
options:
mode: non-blocking
environment:
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- db:/var/lib/mysql
volumes:
images:
db:
secrets:
ldap_private_key:
file: ./secrets/ldapskey.key