version: "3" services: service.nginx: image: nginx:1.22.1 container_name: nginx ports: - 80:80 - 443:443 volumes: - /home/zkpk/nginx/nginx.conf:/etc/nginx/nginx.conf - /home/zkpk/nginx/conf.d:/etc/nginx/conf.d - /etc/letsencrypt:/etc/letsencrypt - /home/zkpk/nginx/fs:/fs - /home/zkpk/nginx/web:/web extra_hosts: localhost.com: 172.17.0.1 stdin_open: true tty: true restart: always