docker-compose.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. container_name: "test-nginx"
  14. command: [nginx,'-g','daemon off;']
  15. extra_hosts:
  16. - "docker.hostip:172.17.0.1"
  17. deploy:
  18. resources:
  19. limits:
  20. cpus: '8'
  21. mobile:
  22. image: php-zts:7.3.18
  23. ports:
  24. - "9100:9100"
  25. volumes:
  26. - ../../../../:/var/www/html
  27. - ../conf/etc/localtime:/etc/localtime:ro
  28. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  29. - /nfs/upload:/var/www/html/data/upload
  30. - /mnt/testlog:/var/www/html/data/log
  31. - ../conf/php/mobile-spwan-start:/usr/local/bin/docker-spwan-start
  32. container_name: "test-mobile"
  33. command: ['docker-spwan-start']
  34. deploy:
  35. resources:
  36. limits:
  37. cpus: '8'
  38. vapisrv:
  39. image: php-zts:7.3.18
  40. ports:
  41. - 9103:9100
  42. volumes:
  43. - ../../../../:/var/www/html
  44. - ../conf/etc/localtime:/etc/localtime:ro
  45. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  46. - /mnt/upload:/var/www/html/data/upload
  47. - /mnt/testlog:/var/www/html/data/log
  48. - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
  49. container_name: "panda-vapi"
  50. command: ['docker-spwan-start']
  51. deploy:
  52. resources:
  53. limits:
  54. cpus: '8'