模板如下:
# docker-compose-nignx.yaml
version: '2'
services:
nginx:
container_name: bigscreen
image: nginx:latest
restart: always
volumes:
- ./www:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf
- ./logs:/var/log/nginx
ports:
- "1234:80"
启动命令:
docker-compose -f docker-compose-nignx.yaml up -d
网友评论