-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (68 loc) · 1.43 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
version: '3.8'
services:
openldap:
image: osixia/openldap:latest
container_name: openldap-server
hostname: ldap-service
environment:
LDAP_ADMIN_PASSWORD: password
LDAP_BASE_DN: cn=admin,dc=example,dc=org
ports:
- 389:389
volumes:
- ./ldap-data:/var/lib/ldap
- ./ldap-config:/etc/ldap/slapd.d
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin-service
hostname: phpldapadmin-service
environment:
PHPLDAPADMIN_LDAP_HOSTS: ldap-host
links:
- openldap:ldap-host
ports:
- 6443:443
depends_on:
- openldap
apache-php:
build:
context: ./
dockerfile: Dockerfile
container_name: php-server
restart: always
ports:
- 8080:80
volumes:
- ./public-html:/var/www/html
- ./config-php:/usr/local/etc/php
- ./config-apache:/etc/apache2
depends_on:
- openldap
db:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: password
ports:
- 33060:3306
volumes:
- .mysql_data:/var/lib/mysql:rw
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8081:80
environment:
- PMA_HOST=db
depends_on:
- db
volumes:
src: {}
config-php: {}
config-apache: {}
.mysql_data: {}
ldap-data: {}
ldap-config: {}