docker-compose.yml 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: "3.7"
  2. services:
  3. nginx:
  4. image: nginx:alpine
  5. ports:
  6. - "8180: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/gxupload:/var/www/html/data/upload
  12. - /mnt/gxlog:/var/nginxlog
  13. container_name: "gx-nginx"
  14. command: [nginx,'-g','daemon off;']
  15. extra_hosts:
  16. - "docker.hostip:172.17.0.1"
  17. networks:
  18. - net_gxshop
  19. mobile:
  20. image: php-zts:7.3.18
  21. volumes:
  22. - ../../../../:/var/www/html
  23. - ../conf/etc/localtime:/etc/localtime:ro
  24. - ../conf/php/php.ini:/usr/local/etc/php/php.ini
  25. - /nfs/gxupload:/var/www/html/data/upload
  26. - /mnt/gxlog:/var/www/html/data/log
  27. - ../conf/php/mobile-spwan-start:/usr/local/bin/docker-spwan-start
  28. container_name: "gx-mobile"
  29. command: ['docker-spwan-start']
  30. networks:
  31. - net_gxshop
  32. networks:
  33. net_gxshop:
  34. external: true