forked from Wonderfall/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.example
195 lines (178 loc) · 4.45 KB
/
docker-compose.yml.example
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
version: '2'
services:
#
# [ server stack ]
#
# - nginx
# - php
# - mysql
#
backup:
build: ./backup
container_name: backup
volumes:
- nextcloud_src:/var/www/nextcloud
- nextcloud_apps:/apps/nextcloud/apps_installed
- nextcloud_config:/apps/nextcloud/config
- nextcloud_data:/apps/nextcloud/data
- data_mysql_nextcloud:/apps/nextcloud/mysql
- nginx_src:/apps/nginx_frontend/html
- nginx_config:/apps/nginx_frontend/conf.d
- nginx_certificates:/apps/nginx_frontend/certs
- openldap_data:/apps/openldap/data
- openldap_config:/apps/openldap/slapd.d
- ubiquiti_data:/apps/ubiquiti/data
- /home/maat/backup:/backup
nginx_frontend:
build: ./nginx
restart: "always"
container_name: nginx_proxy
depends_on:
- nextcloud
networks:
- frontend
- backend
ports:
- "80:80"
- "443:443"
volumes:
- nginx_src:/www
- nginx_config:/etc/nginx/sites-enabled
# - nginx_certificates:/etc/nginx/certs
phpldapadmin:
build: ./phpldapadmin
restart: "always"
container_name: phpLDAPadmin
depends_on:
- openldap
networks:
- backend
environment:
# Enter the name of the openldap container
# Setting this is optional (default: openldap:389)
#- LDAP_SERVER=openldap
#- LDAP_PORT=389
# A descriptive text to display for the LDAP server, similar to $SLAPD_DESCRIPTION
# of the openldap container
# Setting this is optional (default: My LDAP server)
- SERVER_DESCRIPTION=LDAP server Mainz
# The ldap dn to bind on default (can be changed on login as well)
- LDAP_BIND_DN=cn=root,dc=server2,dc=maat-family,dc=de
openldap:
build: ./openldap
restart: "always"
container_name: openLDAP
networks:
- backend
volumes:
- openldap_data:/var/lib/openldap/openldap-data
- openldap_config:/etc/openldap/slapd.d
# Comment out this line after initialising the images to keep the secrets secret
# Secrets like the root password will be stored as hashes and are no longer needed
#env_file:
# - './.docker-openldap.env'
nextcloud:
build: ./nextcloud/17.0
restart: "always"
container_name: nextcloud
environment:
- UID=1000
- GID=1000
networks:
- backend
volumes:
- /media/storage/samba/public:/external
- nextcloud_apps:/var/www/nextcloud/apps_installed
- nextcloud_config:/var/www/nextcloud/config
- nextcloud_data:/var/www/nextcloud/data
depends_on:
- db_nextcloud
- openldap
db_nextcloud:
image: mariadb
restart: "always"
container_name: nextcloud_mysql
volumes:
- data_mysql_nextcloud:/var/lib/mysql
networks:
- backend
env_file:
- './.docker-mysql-nextcloud.env'
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpMyAdmin
restart: always
networks:
- backend
volumes:
- /sessions
environment:
- PMA_ARBITRARY=1
unifi-controller:
container_name: unifi.controller
image: jacobalberty/unifi:latest
restart: always
volumes:
- ubiquiti_data:/unifi/data
- ubiquiti_logs:/unifi/log'
- ubiquiti_run:/var/run/unifi
ports:
- "3478:3478/udp" # STUN
- "6789:6789/tcp" # Speed test
- "8080:8080/tcp" # Device/ controller comm.
- "8443:8443/tcp" # Controller GUI/API as seen in a web browser
- "10001:10001/udp" # AP discovery
environment:
- TZ=Europe/Berlin
labels:
- 'unifi-controller'
# network_mode: "host"
# crossbar.io:
# image: crossbario/crossbar
# container_name: crossbar.io
# restart: always
# networks:
# - frontend
# - backend
#
# [ volumes definition ]
#
# creates Docker volumes which can be mounted by other containers too e.g. for backup
#
volumes:
nginx_src:
driver: local
nginx_config:
driver: local
nginx_certificates:
driver: local
nextcloud_src:
driver: local
nextcloud_apps:
driver: local
nextcloud_config:
driver: local
nextcloud_data:
driver: local
nextcloud_mysql_data:
driver: local
data_mysql_nextcloud:
driver: local
ubiquiti_data:
driver: local
ubiquiti_logs:
driver: local
ubiquiti_run:
driver: local
openldap_data:
# driver: local
openldap_config:
# driver: local
#
# [ networks definition ]
#
networks:
frontend:
driver: bridge
backend:
driver: bridge