docker-compose.yml 463 B

12345678910111213141516171819
  1. version: "3"
  2. services:
  3. service.nginx:
  4. image: nginx:1.22.1
  5. container_name: nginx
  6. ports:
  7. - 80:80
  8. - 443:443
  9. volumes:
  10. - /home/zkpk/nginx/nginx.conf:/etc/nginx/nginx.conf
  11. - /home/zkpk/nginx/conf.d:/etc/nginx/conf.d
  12. - /etc/letsencrypt:/etc/letsencrypt
  13. - /home/zkpk/nginx/fs:/fs
  14. - /home/zkpk/nginx/web:/web
  15. extra_hosts:
  16. localhost.com: 172.17.0.1
  17. stdin_open: true
  18. tty: true
  19. restart: always