16 lines
489 B
YAML
16 lines
489 B
YAML
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
|