version: '3' services: nginx1.23.1: container_name: nginx1.23.1 image: nginx:1.23.1 restart: always network_mode: host volumes: - ./conf/nginx.conf:/etc/nginx/nginx.conf - ./log:/var/log/nginx - ./conf/conf.d:/etc/nginx/conf.d/ - ./ssl:/etc/nginx/ssl - ./www:/www/root/ - ./root:/usr/share/nginx/html