12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- version: "3.7"
- services:
- nginx:
- image: nginx:alpine
- ports:
- - "8080:80"
- volumes:
- - ../../../../:/var/www/html
- - ../conf/etc/localtime:/etc/localtime:ro
- - ../conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- - /nfs/upload:/var/www/html/data/upload
- - /nfs/tmerchant:/var/www/html/merchant
- - /nfs/chinatelecom:/var/www/html/chinatelecom
- container_name: "test-nginx"
- command: [nginx,'-g','daemon off;']
- extra_hosts:
- - "docker.hostip:172.17.0.1"
- deploy:
- resources:
- limits:
- cpus: '8'
- mobile:
- image: php-zts:7.3.18
- ports:
- - "9100:9100"
- volumes:
- - ../../../../:/var/www/html
- - ../conf/etc/localtime:/etc/localtime:ro
- - ../conf/php/php.ini:/usr/local/etc/php/php.ini
- - /nfs/upload:/var/www/html/data/upload
- - /mnt/testlog:/var/www/html/data/log
- - ../conf/php/mobile-spwan-start:/usr/local/bin/docker-spwan-start
- container_name: "test-mobile"
- command: ['docker-spwan-start']
- deploy:
- resources:
- limits:
- cpus: '8'
- vapisrv:
- image: php-zts:7.3.18
- ports:
- - 9103:9100
- volumes:
- - ../../../../:/var/www/html
- - ../conf/etc/localtime:/etc/localtime:ro
- - ../conf/php/php.ini:/usr/local/etc/php/php.ini
- - /mnt/upload:/var/www/html/data/upload
- - /mnt/testlog:/var/www/html/data/log
- - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
- container_name: "panda-vapi"
- command: ['docker-spwan-start']
- deploy:
- resources:
- limits:
- cpus: '8'
|