-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
77 lines (72 loc) · 1.74 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
69
70
71
72
73
74
75
76
77
version: '2'
services:
openldap:
image: leejoneshane/tpedusso:openldap
container_name: openldap
hostname: ldap
restart: always
ldapadmin:
image: leejoneshane/tpedusso:phpldapadmin
container_name: ldapadmin
restart: always
ports:
- "8080:80"
links:
- openldap:openldap
mysql:
image: mysql
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: dbpassword
restart: always
sqladmin:
image: phpmyadmin/phpmyadmin
container_name: sqladmin
ports:
- "8088:80"
links:
- mysql:db
redis:
image: redis
container_name: redis
restart: always
laravel:
image: leejoneshane/tpedusso
container_name: laravel
hostname: ldap.tp.edu.tw
volumes:
- ./htdocs:/var/www/localhost/htdocs
environment:
APP_DEBUG: 'true'
APP_KEY: 'base64:fx/bpfXs+pQ3j7eeZP5gkqWxBtbhUpaqELdpQeeP/N8='
APP_URL: 'http://127.0.0.1'
SESSION_SECURE_COOKIE: 'false'
CACHE_DRIVER: redis
SESSION_DRIVER: redis
SESSION_CONNECTION: session
REDIS_HOST: redis
REDIS_PORT: 6379
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: laravel
DB_USERNAME: root
DB_PASSWORD: dbpassword
LDAP_HOST: ldap://openldap
LDAP_ROOTDN: cn=admin,dc=tp,dc=edu,dc=tw
LDAP_ROOTPWD: test
MAIL_DRIVER: smtp
MAIL_HOST: smtp.gmail.com
MAIL_PORT: 587
MAIL_USERNAME: your@gmail.com
MAIL_PASSWORD: password
MAIL_ENCRYPTION: tls
SAML_MAIL: ms.tp.edu.tw
ports:
- "80:80"
- "443:443"
links:
- mysql:mysql
- redis:redis
restart: always