|
@@ -1,5 +1,9 @@
|
|
version: '3'
|
|
version: '3'
|
|
|
|
|
|
|
|
+networks:
|
|
|
|
+ kphcdr:
|
|
|
|
+ driver: bridge
|
|
|
|
+
|
|
services:
|
|
services:
|
|
nginx:
|
|
nginx:
|
|
container_name: ${ABBREVIATION}-nginx
|
|
container_name: ${ABBREVIATION}-nginx
|
|
@@ -11,6 +15,8 @@ services:
|
|
- ./www:/www
|
|
- ./www:/www
|
|
- ./config/nginx/conf.d:/etc/nginx/conf.d
|
|
- ./config/nginx/conf.d:/etc/nginx/conf.d
|
|
- ./logs/nginx/logs:/logs
|
|
- ./logs/nginx/logs:/logs
|
|
|
|
+ networks:
|
|
|
|
+ - kphcdr
|
|
ports:
|
|
ports:
|
|
- "${NUMBER}080:80"
|
|
- "${NUMBER}080:80"
|
|
|
|
|
|
@@ -27,6 +33,8 @@ services:
|
|
volumes:
|
|
volumes:
|
|
- ./www:/www
|
|
- ./www:/www
|
|
- ./config/php/php.ini:/usr/local/etc/php/php.ini
|
|
- ./config/php/php.ini:/usr/local/etc/php/php.ini
|
|
|
|
+ networks:
|
|
|
|
+ - kphcdr
|
|
|
|
|
|
mysql:
|
|
mysql:
|
|
container_name: ${ABBREVIATION}-mysql
|
|
container_name: ${ABBREVIATION}-mysql
|
|
@@ -41,6 +49,8 @@ services:
|
|
environment:
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
|
|
TZ: "Asia/Shanghai"
|
|
TZ: "Asia/Shanghai"
|
|
|
|
+ networks:
|
|
|
|
+ - kphcdr
|
|
|
|
|
|
redis:
|
|
redis:
|
|
container_name: ${ABBREVIATION}-redis
|
|
container_name: ${ABBREVIATION}-redis
|
|
@@ -48,5 +58,7 @@ services:
|
|
restart: always
|
|
restart: always
|
|
volumes:
|
|
volumes:
|
|
- ./data/redis:/data
|
|
- ./data/redis:/data
|
|
|
|
+ networks:
|
|
|
|
+ - kphcdr
|
|
ports:
|
|
ports:
|
|
- "${NUMBER}6379:6379"
|
|
- "${NUMBER}6379:6379"
|