-
Notifications
You must be signed in to change notification settings - Fork 9
/
compose.yml
160 lines (151 loc) · 6.04 KB
/
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
services:
nginx-proxy:
restart: always
image: nginxproxy/nginx-proxy:latest
container_name: nginx-proxy.dap.test
ports:
- 80:80
- 443:443
environment:
DEFAULT_HOST: localhost.markoivancic.from.hr
SSL_POLICY: Mozilla-Modern
volumes:
- ./nginx-proxy/certs:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
aliases:
- localhost.markoivancic.from.hr
- 08-dap.localhost.markoivancic.from.hr
- 82-dap.localhost.markoivancic.from.hr
- 81-dap.localhost.markoivancic.from.hr
- 74-dap.localhost.markoivancic.from.hr
08.dap.test:
image: cicnavi/dap:08
container_name: 08.dap.test
hostname: 08.dap.test
restart: unless-stopped
expose:
- 80
- 443
user: ${CONTAINER_USER_ID}
environment:
VIRTUAL_HOST: >-
08.dap.test,
*.08.dap.test,
localhost.markoivancic.from.hr,
latest-dap.localhost.markoivancic.from.hr,
~^.+-latest-dap\.localhost\.markoivancic\.from\.hr$,
08-dap.localhost.markoivancic.from.hr,
~^.+-08-dap\.localhost\.markoivancic\.from\.hr$
CERT_NAME: localhost.markoivancic.from.hr
HTTPS_METHOD: noredirect
volumes:
#- ~/.ssh:~/.ssh # SSH keys for easy deployment inside the container
- ~/projects:/var/www/projects # Directory for all apps, change local path as needed.
- ./mounts/html:/var/www/html # Public directory, change local path as needed.
- ./dap/08/apache-config:/etc/apache2/config-from-host # Apache configuration to include.
- ./dap/08/php-config:/usr/local/etc/php/conf.d/from-host # PHP configuration to include.
#- ./dap/shared/apache-config:/etc/apache2/shared-config-from-host # Shared Apache configuration to include.
#- ./dap/shared/data:/var/data # Shared directory between containers.
depends_on:
- mysql.dap.test
82.dap.test:
image: cicnavi/dap:82
container_name: 82.dap.test
hostname: 82.dap.test
restart: unless-stopped
expose:
- 80
- 443
user: ${CONTAINER_USER_ID}
environment:
VIRTUAL_HOST: >-
82.dap.test,
*.82.dap.test,
82-dap.localhost.markoivancic.from.hr,
~^.+-82-dap\.localhost\.markoivancic\.from\.hr$
CERT_NAME: localhost.markoivancic.from.hr
HTTPS_METHOD: noredirect
volumes:
- ~/projects:/var/www/projects # Directory for all apps, change local path as needed.
- ./mounts/html:/var/www/html # Public directory, change local path as needed.
- ./dap/82/apache-config:/etc/apache2/config-from-host # Apache configuration to include.
- ./dap/82/php-config:/usr/local/etc/php/conf.d/from-host # PHP configuration to include.
depends_on:
- mysql.dap.test
81.dap.test:
image: cicnavi/dap:81
container_name: 81.dap.test
hostname: 81.dap.test
restart: unless-stopped
expose:
- 80
- 443
user: ${CONTAINER_USER_ID}
environment:
VIRTUAL_HOST: >-
81.dap.test,
*.81.dap.test,
81-dap.localhost.markoivancic.from.hr,
~^.+-81-dap\.localhost\.markoivancic\.from\.hr$
CERT_NAME: localhost.markoivancic.from.hr
HTTPS_METHOD: noredirect
volumes:
- ~/projects:/var/www/projects # Directory for all apps, change local path as needed.
- ./mounts/html:/var/www/html # Public directory, change local path as needed.
- ./dap/81/apache-config:/etc/apache2/config-from-host # Apache configuration to include.
- ./dap/81/php-config:/usr/local/etc/php/conf.d/from-host # PHP configuration to include.
depends_on:
- mysql.dap.test
74.dap.test:
image: cicnavi/dap:74
container_name: 74.dap.test
hostname: 74.dap.test
restart: unless-stopped
expose:
- 80
- 443
user: ${CONTAINER_USER_ID}
environment:
VIRTUAL_HOST: >-
74.dap.test,
*.74.dap.test,
74-dap.localhost.markoivancic.from.hr,
~^.+-74-dap\.localhost\.markoivancic\.from\.hr$
CERT_NAME: localhost.markoivancic.from.hr
HTTPS_METHOD: noredirect
volumes:
- ~/projects:/var/www/projects # Directory for all apps, change local path as needed.
- ./mounts/html:/var/www/html # Public directory, change local path as needed.
- ./dap/74/apache-config:/etc/apache2/config-from-host # Apache configuration to include.
- ./dap/74/php-config:/usr/local/etc/php/conf.d/from-host # PHP configuration to include.
depends_on:
- mysql.dap.test
mysql.dap.test:
restart: unless-stopped
extends:
service: mysql.dap.test
file: mysql/compose.yml
mysql8.dap.test:
restart: unless-stopped
extends:
service: mysql8.dap.test
file: mysql/compose.yml
openldap:
restart: unless-stopped
extends:
service: openldap
file: openldap/compose.yml
phpldapadmin:
restart: unless-stopped
extends:
service: phpldapadmin
file: openldap/compose.yml
depends_on:
- openldap
redis7:
restart: unless-stopped
extends:
service: redis7
file: redis7/compose.yml