docker-compose.yml 1000 B

1234567891011121314151617181920212223242526272829303132333435363738
  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.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. mobilesrv:
  21. image: php-zts:7.3.18
  22. ports:
  23. - "9100:9100"
  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. - /mnt/upload:/var/www/html/data/upload
  29. - /mnt/shoplog:/var/www/html/data/log
  30. - ../conf/php/mobile-spwan-start:/usr/local/bin/docker-spwan-start
  31. container_name: "panda-mobile"
  32. command: ['docker-spwan-start']
  33. deploy:
  34. resources:
  35. limits:
  36. cpus: '8'