This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (63 loc) · 1.62 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
version: "2.0"
services:
unifi-controller:
image: linuxserver/unifi-controller:latest
container_name: unifi-controller
environment:
- "PUID=1000"
- "PGID=1000"
- "MEM_LIMIT=256M"
volumes:
- "./homelab/unifi-controller/config:/config"
ports:
- "3478:3478/udp"
- "10001:10001/udp"
- "8443:8443"
- "6789:6789/tcp"
restart: always # start on boot
pihole:
image: pihole/pihole:latest
container_name: pihole
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'America/Los_Angeles'
WEBPASSWORD: 'stupid-password'
volumes:
- './homelab/pihole/etc-pihole/:/etc/pihole/'
- './homelab/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- "127.0.0.1"
- "1.1.1.1"
cap_add:
- NET_ADMIN
restart: always # start on boot
sftp:
image: linuxserver/openssh-server:latest
container_name: sftp
environment:
TZ: 'America/Los_Angeles'
PUID: '1000'
PGID: '1000'
PASSWORD_ACCESS: 'false'
USER_NAME: 'backup'
PUBLIC_KEY_FILE: '/ssh/id_ed25519.pub'
volumes:
# Manual configuration of /etc/fstab is likely necessary
- '/media/backup:/home/backup/share'
- '/home/ubuntu/.ssh/:/ssh/:ro'
- './homelab/openssh-server/config:/config'
ports:
- "7742:2222/tcp"
restart: always
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
command: --schedule "9 6 * * *"
restart: always