12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- version: "3.7"
- services:
- nginx:
- image: nginx:alpine
- ports:
- - "8180:80"
- volumes:
- - ../../../../:/var/www/html
- - ../conf/etc/localtime:/etc/localtime:ro
- - ../conf/nginx/nginx_admin.conf:/etc/nginx/nginx.conf:ro
- - /nfs/gxupload:/var/www/html/data/upload
- - /mnt/gxlog:/var/nginxlog
- # - /nfs/gxmerchant:/var/www/html/merchant
- container_name: "gx-nginx"
- command: [nginx,'-g','daemon off;']
- extra_hosts:
- - "docker.hostip:172.17.0.1"
- networks:
- - net_gxshop
- mch:
- image: php-zts:7.3.18
- volumes:
- - ../../../../:/var/www/html
- - ../conf/etc/localtime:/etc/localtime:ro
- - ../conf/php/php.ini:/usr/local/etc/php/php.ini
- - ../conf/php/mch-spwan-start:/usr/local/bin/docker-spwan-start
- - /nfs/gxupload:/var/www/html/data/upload
- - /mnt/gxlog:/var/www/html/data/log
- container_name: "gx-merchant"
- extra_hosts:
- - "docker.hostip:172.17.0.1"
- networks:
- - net_gxshop
- web:
- image: php-fpm:alpine
- volumes:
- - ../../../../:/var/www/html
- - ../conf/etc/localtime:/etc/localtime:ro
- - ../conf/php/php.ini:/usr/local/etc/php/php.ini
- - ../conf/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf
- - /nfs/gxupload:/var/www/html/data/upload
- - /mnt/gxlog:/var/www/html/data/log
- container_name: "gx-web"
- command: [php-fpm]
- extra_hosts:
- - "docker.hostip:172.17.0.1"
- networks:
- - net_gxshop
- networks:
- net_gxshop:
- external: true
|