|
@@ -1,9 +1,5 @@
|
|
|
version: '3'
|
|
|
|
|
|
-networks:
|
|
|
- kphcdr:
|
|
|
- driver: bridge
|
|
|
-
|
|
|
services:
|
|
|
nginx:
|
|
|
container_name: ${ABBREVIATION}-nginx
|
|
@@ -15,24 +11,22 @@ services:
|
|
|
- ./www:/www
|
|
|
- ./config/nginx/conf.d:/etc/nginx/conf.d
|
|
|
- ./logs/nginx/logs:/logs
|
|
|
- networks:
|
|
|
- - kphcdr
|
|
|
ports:
|
|
|
- "${NUMBER}080:80"
|
|
|
|
|
|
php:
|
|
|
- build:
|
|
|
- context: ./config/php
|
|
|
- args:
|
|
|
- TZ: "Asia/Shanghai"
|
|
|
+ #没有自定义要求就用镜像
|
|
|
+ #build:
|
|
|
+ # context: ./config/php
|
|
|
+ # args:
|
|
|
+ # TZ: "Asia/Shanghai"
|
|
|
+ image: docker.io/kphcdr/kphcdr_php:latest
|
|
|
restart: always
|
|
|
container_name: ${ABBREVIATION}-php-fpm
|
|
|
working_dir: /www/server
|
|
|
volumes:
|
|
|
- ./www:/www
|
|
|
- ./config/php/php.ini:/usr/local/etc/php/php.ini
|
|
|
- networks:
|
|
|
- - kphcdr
|
|
|
|
|
|
mysql:
|
|
|
container_name: ${ABBREVIATION}-mysql
|
|
@@ -47,8 +41,6 @@ services:
|
|
|
environment:
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
TZ: "Asia/Shanghai"
|
|
|
- networks:
|
|
|
- - kphcdr
|
|
|
|
|
|
redis:
|
|
|
container_name: ${ABBREVIATION}-redis
|
|
@@ -56,7 +48,5 @@ services:
|
|
|
restart: always
|
|
|
volumes:
|
|
|
- ./data/redis:/data
|
|
|
- networks:
|
|
|
- - kphcdr
|
|
|
ports:
|
|
|
- "${NUMBER}6379:6379"
|