62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
services:
|
|
nginxmain:
|
|
image: nginx:latest
|
|
container_name: nginxmain
|
|
restart: unless-stopped:0
|
|
ports:
|
|
- 8083:80
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.nginxmain.rule=Host(`kovijoe.com`, `www.kovijoe.com`)"
|
|
- "traefik.http.routers.nginxmain.entrypoints=http"
|
|
- "traefik.http.services.nginxmain.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.nginxmain-secure.rule=Host(`kovijoe.com`, `www.kovijoe.com`)"
|
|
- "traefik.http.routers.nginxmain-secure.entrypoints=https"
|
|
- "traefik.http.routers.nginxmain-secure.tls.certresolver=letsencrypt"
|
|
volumes:
|
|
- "/mnt/Data/.system/containerdata/nginxMain/data:/usr/share/nginx/html"
|
|
- "/mnt/Data/.system/containerdata/nginxMain/config/nginx.conf:/etc/nginx/nginx.conf"
|
|
networks:
|
|
homenet:
|
|
aliases:
|
|
- nginxmain
|
|
|
|
networks:
|
|
homenet:
|
|
|
|
volumes:
|
|
Downloads:
|
|
driver: local
|
|
driver_opts:
|
|
device: /mnt/Data/Downloads/Complete
|
|
o: bind
|
|
type: none
|
|
|
|
DownloadsIncomplete:
|
|
driver: local
|
|
driver_opts:
|
|
device: /mnt/Data/Downloads/Incomplete
|
|
o: bind
|
|
type: none
|
|
|
|
Movies:
|
|
driver: local
|
|
driver_opts:
|
|
device: /mnt/Data/Videos/Filmek
|
|
o: bind
|
|
type: none
|
|
|
|
Pictures:
|
|
driver: local
|
|
driver_opts:
|
|
device: /mnt/pictures
|
|
o: bind
|
|
type: none
|
|
|
|
TvShows:
|
|
driver: local
|
|
driver_opts:
|
|
device: /mnt/Data/Videos/Sorozatok
|
|
o: bind
|
|
type: none
|