add docker compose files
This commit is contained in:
15
docker-compose.nginx.yml
Normal file
15
docker-compose.nginx.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
nginx:
|
||||
container_name: nginx
|
||||
extra_hosts:
|
||||
- host:192.168.2.200
|
||||
image: nginx:1.25.4
|
||||
ports:
|
||||
- 20080:80
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/nginx/etc/.htpasswd:/host/etc/.htpasswd
|
||||
- /opt/nginx/etc/nginx/conf:/etc/nginx/conf
|
||||
- /opt/nginx/etc/nginx/conf.d:/etc/nginx/conf.d
|
||||
- /opt/nginx/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- /opt/nginx/var/log/nginx:/var/log/nginx
|
||||
Reference in New Issue
Block a user