version: '3' # docker-compose -f docker-compose.yml up -d services: nginx: image: nginx:1.25.3 container_name: nginx ports: - '443:443' - '80:80' volumes: - './nginx/logs:/var/log/nginx' - './nginx/html:/usr/share/nginx/html' - './nginx/conf/nginx.conf:/etc/nginx/nginx.conf' - './nginx/conf/conf.d:/etc/nginx/conf.d' - '/root/.acme.sh/*.xiaofuge.tech_ecc/*.xiaofuge.tech.cer:/root/.acme.sh/*.xiaofuge.tech_ecc/*.xiaofuge.tech.cer' - '/root/.acme.sh/*.xiaofuge.tech_ecc/*.xiaofuge.tech.key:/root/.acme.sh/*.xiaofuge.tech_ecc/*.xiaofuge.tech.key' privileged: true restart: always