forked from Dallas-Makerspace/calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
132 lines (132 loc) · 3.24 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
services:
traefik:
image: "traefik:latest"
container_name: "traefik"
labels:
- traefik.enable=true
- traefik.http.routers.traefik=true
- traefik.http.routers.traefik.rule=Host("traefik.docker.localhost")
- traefik.http.routers.traefik.service=api@internal
ports:
# HTTPS / SSL port
- "443:443"
- "80:80"
# The Traefik Web UI port (enabled by api:insecure)
- "8899:8080"
environment:
- TRAEFIK_GLOBAL_SENDANONYMOUSUSAGE=false
- TRAEFIK_API_DASHBOARD=true
- TRAEFIK_API_INSECURE=true
- TRAEFIK_PROVIDERS_DOCKER=true
- TRAEFIK_LOG_FORMAT=common
- TRAEFIK_ENTRYPOINTS_http_ADDRESS=:80
- TRAEFIK_ENTRYPOINTS_http_HTTP_REDIRECTIONS_ENTRYPOINT_TO=https
- TRAEFIK_ENTRYPOINTS_http_HTTP_REDIRECTIONS_ENTRYPOINT_SCHEME=https
- TRAEFIK_ENTRYPOINTS_https_ADDRESS=:443
#- TRAEFIK_LOG_LEVEL=DEBUG
#- TRAEFIK_ACCESSLOG=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
main:
ldap:
extends:
file: ./dms-ad-openldap/docker-compose.yml
service: openldap
networks:
main:
aliases:
- openldap
phpldapadmin:
extends:
file: ./dms-ad-openldap/docker-compose.yml
service: phpldapadmin
networks:
main:
aliases:
- phpldapadmin
links:
- ldap
mail:
image: mailhog/mailhog
restart: always
ports:
- 8025:8025
networks:
main:
aliases:
- mail
db:
image: mariadb:latest
ports:
- "53306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'cakephp'
MYSQL_DATABASE: 'dms-calendar'
MYSQL_USER: 'calendar'
MYSQL_PASSWORD: 'calendar'
networks:
main:
aliases:
- db
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=cakephp
links:
- db
ports:
- 8081:80
volumes:
- /sessions
networks:
main:
aliases:
- phpmyadmin
app:
build:
context: .
target: develop
args:
FWATCHDOG_VERSION: "0.7.1"
volumes:
- ./vendor:/var/www/vendor:rw
- ./logs/www:/var/www/logs:rw
- ./logs/var:/var/log/:rw
- .:/var/www:rw
links:
- db
ports:
- "8000:80"
labels:
- traefik.enable=true
- traefik.http.routers.app.tls=true
- traefik.http.routers.app.rule=Host("calendar.docker.localhost")
entrypoint: ['/var/www/.docker/wait-for-it.sh', "db:3306", "-s", "-t", "120", "--" ]
command: '/var/www/.docker/startup.sh'
environment:
DEBUG: true
DB_HOST: 'db' # Leave this as 'db' to utilize MySQL container(s)
DB_USERNAME: 'calendar'
DB_PASSWORD: 'calendar'
DB_DATABASE: 'dms-calendar'
DB_SEED: 'DatabaseSeed'
EMAIL_HOST: 'mail'
EMAIL_PORT: 1025
EMAIL_TIMEOUT: 30
EMAIL_TLS: false
AD_SERVER: 'openldap'
AD_BASE: 'dc=dms,dc=local'
AD_SUFFIX: '@dms.local'
AD_BIND_UN: 'cn=admin,dc=dms,dc=local'
AD_BIND_PW: 'Adm1n!'
AD_USE_TLS: true
networks:
main:
aliases:
- app
networks:
main: