-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
215 lines (202 loc) · 4.94 KB
/
docker-compose.yml
File metadata and controls
215 lines (202 loc) · 4.94 KB
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
version: "3.6"
# NB:
# docker-compose automagically loads environment variables defined in an `.env` file
# router will route ports: [ 80, 53, 67 ]
#
# TODO:
# - does pihole require the default network?
volumes:
pihole:
db:
nextcloud:
wordpress:
syncthing-config:
onedrive-config:
pcloud-cache:
qbittorrent:
# proxy
proxy-certs:
proxy-conf:
proxy-dhparam:
proxy-html:
proxy-vhost:
# proxy-acme
acme-acme:
services:
proxy:
container_name: proxy
image: nginxproxy/nginx-proxy:latest
restart: always
volumes:
- proxy-certs:/etc/nginx/certs
- proxy-conf:/etc/nginx/conf.d
- proxy-dhparam:/etc/nginx/dhparam
- proxy-html:/usr/share/nginx/html
- proxy-vhost:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
ports:
- 80:80
- 443:443
acme:
container_name: proxy-acme
image: nginxproxy/acme-companion:latest
restart: always
depends_on:
- proxy
volumes_from:
- proxy
volumes:
- acme-acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
NGINX_PROXY_CONTAINER: proxy
DEFAULT_EMAIL: ${EMAIL}
networks:
- proxy-tier
pihole:
container_name: pihole
image: pihole/pihole:2024.01.0
restart: unless-stopped
# depends_on:
# - proxy-acme
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
# - "80:80/tcp"
environment:
- TZ=Australia/Sydney
- WEBPASSWORD_FILE=/run/secrets/pihole_password
- PORT=80
- VIRTUAL_PORT=80
- VIRTUAL_HOST=pihole.${DOMAIN}
- LETSENCRYPT_HOST=pihole.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
# Volumes store your data between container upgrades
volumes:
- pihole:/etc
secrets:
- pihole_password
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# cap_add:
# - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
networks:
- proxy-tier
- default
db:
container_name: db
image: ghcr.io/linuxserver/mariadb
restart: always
volumes:
- db:/config
# ports:
# - 3306:3306
nextcloud:
container_name: nextcloud
image: nextcloud:27-apache
restart: always
environment:
- PORT=80
- VIRTUAL_PORT=80
- VIRTUAL_HOST=nc.${DOMAIN}
- LETSENCRYPT_HOST=nc.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
- OVERWRITEPROTOCOL=https
- MYSQL_HOST=db
- MYSQL_USER=nextclouduser
- MYSQL_PASSWORD_FILE=/run/secrets/db_nextcloud_password
- MYSQL_DATABASE=nextcloud
volumes:
- nextcloud:/var/www/html
depends_on:
- db
# - proxy-acme
networks:
- proxy-tier
- default
secrets:
- db_nextcloud_password
wordpress:
container_name: wordpress
image: wordpress:6.4.2
restart: always
environment:
- PORT=80
- VIRTUAL_PORT=80
- VIRTUAL_HOST=${DOMAIN}
- LETSENCRYPT_HOST=${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wordpressuser
- WORDPRESS_DB_PASSWORD_FILE=/run/secrets/db_wordpress_password
- WORDPRESS_DB_NAME=wordpress
volumes:
- wordpress:/var/www/html
depends_on:
- db
# - proxy-acme
networks:
- proxy-tier
- default
secrets:
- db_wordpress_password
samba:
container_name: samba
image: ghcr.io/servercontainers/samba:smbd-only-latest
restart: unless-stopped
environment:
# SAMBA_CONF_LOG_LEVEL: 3
ACCOUNT_sambauser: PASSWORD
UID_sambauser: SAMBAUSERID
SAMBA_VOLUME_CONFIG_share: |
[share]
path=/shares/share
force user = sambauser
available = yes
browsable = yes
writable = yes
read only = no
public = no
guest ok = no
volumes:
- /home/sambauser/share:/shares/share
ports:
- 137:137
- 138:138
- 139:139
- 445:445
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=Australia/Sydney
- VIRTUAL_PORT=80
- VIRTUAL_HOST=qbit.${DOMAIN}
- LETSENCRYPT_HOST=qbit.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
- WEBUI_PORT=80
- TORRENTING_PORT=6981
volumes:
- qbittorrent:/config
- /home/miki/Downloads:/downloads
ports:
- 6981:6981
- 6981:6981/udp
networks:
- proxy-tier
- default
networks:
proxy-tier:
secrets:
db_nextcloud_password:
file: secrets/db_nextcloud_password
db_wordpress_password:
file: secrets/db_wordpress_password
pihole_password:
file: secrets/pihole_password