version: "3.7" services: nginx: image: nginx:alpine ports: - "80:80" volumes: - ./redmine:/var/www/html/redmine - ../conf/etc/localtime:/etc/localtime:ro - ../conf/nginx/nginx_vendor.conf:/etc/nginx/nginx.conf:ro container_name: "yl-nginx" command: [nginx,'-g','daemon off;'] extra_hosts: - "docker.hostip:172.17.0.1" deploy: resources: limits: cpus: '8'