#tradewind:fix nginx & zip

This commit is contained in:
2021-06-08 18:48:13 +08:00
parent 00ee0c8605
commit 73e3fc7391
3 changed files with 21 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ services:
- ./nginx/sources.list:/etc/apt/sources.list
- ${LOCAL_CODE_ROOT}:/var/www/http
- ./log/nginx:/var/log/nginx
container_name: nginx-server
container_name: nginx
restart: always
php7.4:
build:
@@ -25,22 +25,19 @@ services:
- ${LOCAL_CODE_ROOT}:/var/www/http
networks:
- server
container_name: php7.4
container_name: php74
ports:
- 9000:9000
restart: always
mysql: # 添加 mysql 服务
mysql:
build:
context: mysql/
dockerfile: dockerfile
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
# command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # 设置编码
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci #设置utf8字符集
command: --default-authentication-plugin=mysql_native_password
# volumes:
# - ${MYSQL_DATA_PATH}:/var/lib/mysql
# platform: linux/amd64 # apple silicon
networks:
- server
ports: