docker-compose.yml 375 B

1234567891011121314151617
  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/conf.d:/etc/nginx/conf.d
  11. - /home/zkpk/nginx/cert:/etc/nginx/cert
  12. - /home/zkpk/nginx/fs:/fs
  13. extra_hosts:
  14. localhost.com: 172.17.0.1
  15. stdin_open: true
  16. tty: true
  17. restart: always