-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker.compose.yaml
33 lines (30 loc) · 1.09 KB
/
docker.compose.yaml
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
version: '2'
services:
letsencrypt:
container_name: letsencrypt
image: linuxserver/letsencrypt
restart: unless-stopped
networks:
nginx_network:
ipv4_address: 192.168.1.33 #choose any IP of your choice
ports:
- 80:80 #open this port in your router and set it to the ip above
- 443:443 #open this port in your router and
environment:
- [email protected] #optional, fill in if you want cert-notifications
- TZ=Europe/Stockholm #set your timezone
- URL=example.com #your url domain.com domain.duckdns.org etc..
- SUBDOMAINS=,www,hass,unifi #add any subdomains you are going to be using
- VALIDATION=http #make sure port 80 is open and clear
volumes:
- /docker/letsencrypt/config:/config #you will have to create this dir or you will get an error
cap_add:
- NET_ADMIN
networks:
nginx_network:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.1.0/24 # <-- Update to the same subnet your current network has.