-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
180 lines (178 loc) · 5.11 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
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
version: '3.3'
services:
web-proxy:
image: jwilder/nginx-proxy
container_name: web-proxy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- proxy-certs:/etc/nginx/certs:ro
- proxy-vhosts:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
- ./proxy/upload.conf:/etc/nginx/conf.d/upload.conf:ro
web-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: web-proxy-letsencrypt
restart: unless-stopped
environment:
- NGINX_PROXY_CONTAINER=web-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxy-certs:/etc/nginx/certs:rw
- proxy-vhosts:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
command: --interval 300 --label-enable
volumes:
- /var/run/docker.sock:/var/run/docker.sock
amorphitec-www:
build:
context: ./www
container_name: amorphitec-www
restart: unless-stopped
ports:
- "8000:80"
environment:
- VIRTUAL_HOST=amorphitec.io,www.amorphitec.io,amorphitec.com,www.amorphitec.com,mail.amorphitec.io
- LETSENCRYPT_HOST=amorphitec.io,www.amorphitec.io,amorphitec.com,www.amorphitec.com,mail.amorphitec.io
- LETSENCRYPT_EMAIL=admin@amorphitec.io
amorphitec-mail:
image: tvial/docker-mailserver:latest
container_name: amorphitec-mail
hostname: mail
domainname: amorphitec.io
restart: unless-stopped
ports:
- "25:25"
- "110:110"
- "143:143"
- "587:587"
- "993:993"
- "995:995"
volumes:
- mail-data:/var/mail
- mail-state:/var/mail-state
- mail-config:/tmp/docker-mailserver
- proxy-certs:/etc/letsencrypt/live:ro
environment:
- ENABLE_SPAMASSASSIN=1
- ENABLE_CLAMAV=0
- ENABLE_FAIL2BAN=1
- ENABLE_POSTGREY=1
- ENABLE_POP3=1
- SSL_TYPE=letsencrypt
- ONE_DIR=1
- DMS_DEBUG=0
- POSTFIX_MESSAGE_SIZE_LIMIT=52428800
cap_add:
- NET_ADMIN
amorphitec-nextcloud:
image: nextcloud
container_name: amorphitec-nextcloud
hostname: nextcloud
domainname: amorphitec.io
restart: unless-stopped
ports:
- "8001:80"
volumes:
- nextcloud-main:/var/www/html
- nextcloud-apps:/var/www/html/custom_apps
- nextcloud-config:/var/www/html/config
- nextcloud-data:/var/data
- ./www/upload.ini:/usr/local/etc/php/conf.d/upload.ini:ro
environment:
- VIRTUAL_HOST=nextcloud.amorphitec.io
- LETSENCRYPT_HOST=nextcloud.amorphitec.io
- LETSENCRYPT_EMAIL=admin@amorphitec.io
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
- NEXTCLOUD_DATA_DIR=/var/data
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=${NEXTCLOUD_MYSQL_NEXTCLOUD_PASSWORD}
- MYSQL_HOST=mysql
links:
- amorphitec-nextcloud-db:mysql
amorphitec-nextcloud-db:
image: mariadb
container_name: amorphitec-nextcloud-db
restart: unless-stopped
volumes:
- nextcloud-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${NEXTCLOUD_MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${NEXTCLOUD_MYSQL_NEXTCLOUD_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
jimternet-www:
image: amorphic/jimternet:latest
container_name: jimternet-www
restart: unless-stopped
ports:
- "8002:80"
environment:
- VIRTUAL_HOST=jimter.net,www.jimter.net
- LETSENCRYPT_HOST=jimter.net,www.jimter.net
- LETSENCRYPT_EMAIL=admin@amorphitec.io
aiqua-optimus:
build:
context: ./aiqua-optimus
container_name: aiqua-optimus
restart: unless-stopped
ports:
- "8003:80"
environment:
- VIRTUAL_HOST=optimus.aiqua.com.au
- LETSENCRYPT_HOST=optimus.aiqua.com.au
- LETSENCRYPT_EMAIL=admin@aiqua.com.au
volumes:
proxy-certs:
driver: local-persist
driver_opts:
mountpoint: /var/data/www-proxy/certs
proxy-vhosts:
driver: local-persist
driver_opts:
mountpoint: /var/data/www-proxy/vhosts
proxy-html:
driver: local-persist
driver_opts:
mountpoint: /var/data/www-proxy/html
mail-data:
driver: local-persist
driver_opts:
mountpoint: /var/data/mail/data
mail-state:
driver: local-persist
driver_opts:
mountpoint: /var/data/mail/state
mail-config:
driver: local-persist
driver_opts:
mountpoint: /var/data/mail/config
nextcloud-main:
driver: local-persist
driver_opts:
mountpoint: /var/data/nextcloud/html
nextcloud-apps:
driver: local-persist
driver_opts:
mountpoint: /var/data/nextcloud/custom_apps
nextcloud-config:
driver: local-persist
driver_opts:
mountpoint: /var/data/nextcloud/config
nextcloud-data:
driver: local-persist
driver_opts:
mountpoint: /var/data/nextcloud/data
nextcloud-db:
driver: local-persist
driver_opts:
mountpoint: /var/data/nextcloud/db