docker-compose.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. version: "3.7"
  2. services:
  3. nginx:
  4. image: nginx:alpine
  5. ports:
  6. - "8080:80"
  7. volumes:
  8. - ../../../../:/var/www/html
  9. - ../conf/etc/localtime:/etc/localtime:ro
  10. - ../conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
  11. - /nfs/upload:/var/www/html/data/upload
  12. - /nfs/tmerchant:/var/www/html/merchant
  13. - /nfs/chinatelecom:/var/www/html/chinatelecom
  14. container_name: "test-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'
  22. mobile:
  23. image: php-zts:7.3.18
  24. ports:
  25. - "9100:9100"
  26. volumes:
  27. - ../../../../:/var/www/html
  28. - ../conf/etc/localtime:/etc/localtime:ro
  29. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  30. - /nfs/upload:/var/www/html/data/upload
  31. - /mnt/testlog:/var/www/html/data/log
  32. - ../conf/php/mobile-spwan-start:/usr/local/bin/docker-spwan-start
  33. container_name: "test-mobile"
  34. command: ['docker-spwan-start']
  35. deploy:
  36. resources:
  37. limits:
  38. cpus: '8'
  39. vapisrv:
  40. image: php-zts:7.3.18
  41. ports:
  42. - 9103:9100
  43. volumes:
  44. - ../../../../:/var/www/html
  45. - ../conf/etc/localtime:/etc/localtime:ro
  46. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  47. - /mnt/upload:/var/www/html/data/upload
  48. - /mnt/testlog:/var/www/html/data/log
  49. - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
  50. container_name: "panda-vapi"
  51. command: ['docker-spwan-start']
  52. deploy:
  53. resources:
  54. limits:
  55. cpus: '8'