docker-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. version: "3.7"
  2. services:
  3. nginxsrv:
  4. image: nginx:alpine
  5. ports:
  6. - "80: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. - /mnt/upload:/var/www/html/data/upload
  12. container_name: "panda-nginx"
  13. command: [nginx,'-g','daemon off;']
  14. extra_hosts:
  15. - "docker.hostip:172.17.0.1"
  16. deploy:
  17. resources:
  18. limits:
  19. cpus: '8'
  20. mchsrv:
  21. image: php-zts:7.3.18
  22. ports:
  23. - "9102:9102"
  24. volumes:
  25. - ../../../../:/var/www/html
  26. - ../conf/etc/localtime:/etc/localtime:ro
  27. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  28. - ../conf/php/mch-spwan-start:/usr/local/bin/docker-spwan-start
  29. - /mnt/upload:/var/www/html/data/upload
  30. - /mnt/shoplog:/var/www/html/data/log
  31. container_name: "panda-merchant"
  32. command: [docker-spwan-start]
  33. deploy:
  34. resources:
  35. limits:
  36. cpus: '8'
  37. websrv:
  38. image: php-fpm:alpine
  39. ports:
  40. - "9000:9000"
  41. volumes:
  42. - ../../../../:/var/www/html
  43. - ../conf/etc/localtime:/etc/localtime:ro
  44. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  45. - ../conf/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf
  46. - /mnt/upload:/var/www/html/data/upload
  47. - /mnt/shoplog:/var/www/html/data/log
  48. container_name: "panda-web"
  49. command: [php-fpm]
  50. extra_hosts:
  51. - "docker.hostip:172.17.0.1"
  52. deploy:
  53. resources:
  54. limits:
  55. cpus: '8'