forked from kalaksi/docker-phpldapadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 1.01 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
version: '2'
services:
phpldapadmin:
image: kalaksi/phpldapadmin
restart: unless-stopped
cap_drop:
- ALL
volumes:
- phpldapadmin_htdocs:/usr/share/phpldapadmin/htdocs
- phpldapadmin_config:/etc/phpldapadmin
- phpldapadmin_nginx_config:/etc/nginx/conf.d
nginx:
image: nginx:stable
restart: unless-stopped
depends_on:
- phpldapadmin
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- SETUID
- SETGID
volumes:
- phpldapadmin_nginx_config:/etc/nginx/conf.d:ro
- phpldapadmin_htdocs:/usr/share/phpldapadmin/htdocs:ro
ports:
- 80:8080/tcp
# You need to set up HTTPS yourself if necessary.
# Basically you need to generate the cert, move it to the config dir and edit the nginx configuration.
# - 443:8443/tcp
volumes:
# Feel free to use other mechanisms for sharing configuration between containers if available.
phpldapadmin_nginx_config: {}
phpldapadmin_config: {}
phpldapadmin_htdocs: {}