docker-compose.yml 571 B

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