docker-compose.yml 439 B

12345678910111213141516171819
  1. version: "3.7"
  2. services:
  3. nginx:
  4. image: nginx:alpine
  5. ports:
  6. - "80:80"
  7. volumes:
  8. - ./redmine:/var/www/html/redmine
  9. - ../conf/etc/localtime:/etc/localtime:ro
  10. - ../conf/nginx/nginx_vendor.conf:/etc/nginx/nginx.conf:ro
  11. container_name: "yl-nginx"
  12. command: [nginx,'-g','daemon off;']
  13. extra_hosts:
  14. - "docker.hostip:172.17.0.1"
  15. deploy:
  16. resources:
  17. limits:
  18. cpus: '8'