feat: add nginx media & cdn from web1

This commit is contained in:
2024-07-20 10:24:05 +00:00
parent 68b48fd211
commit 342e950274
6 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
services:
nginx:
image: nginx:latest
ports:
- "5051:5051"
- "5052:5052"
- "5053:5053"
volumes:
- /opt/nginx-media-cdn/sites-enabled:/etc/nginx/conf.d
- /opt/nginx-media-cdn/htpasswd:/etc/nginx/htpasswd_1
- /data/nginx-media-cdn/cdn:/var/www/cdn
- /data/nginx-media-cdn/media:/var/www/media