-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.56 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
---
services:
# Web server
nginx:
image: nginx:alpine
container_name: nginx-server
ports:
- "80:80"
restart: unless-stopped
volumes:
- ./nginx/html:/usr/share/nginx/html
- ./nginx/conf.d:/etc/nginx/conf.d
# Database
mariadb:
image: linuxserver/mariadb:alpine
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ./mariadb:/config
ports:
- "3306:3306"
restart: unless-stopped
# Database management
phpmyadmin:
image: phpmyadmin/phpmyadmin
platform: linux/arm64
container_name: phpmyadmin
environment:
- PMA_HOST=mariadb
- PMA_PORT=3306
ports:
- "8080:80"
restart: unless-stopped
depends_on:
- mariadb
# Network-wide ad blocking
pihole:
image: pihole/pihole:latest
container_name: pihole
environment:
TZ: ${PIHOLE_TZ:-Europe/Rome}
WEBPASSWORD: ${PIHOLE_WEBPASSWORD}
volumes:
- './pihole/etc-pihole:/etc/pihole'
- './pihole/etc-dnsmasq.d:/etc/dnsmasq.d'
ports:
- "53:53/tcp"
- "53:53/udp"
- "8081:80/tcp"
restart: unless-stopped
cap_add:
- NET_ADMIN
# Automatic container updates
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 0 4 * * *" --cleanup
restart: unless-stopped
volumes:
mariadb: