修改了基于docker 一键部署的Dockerfile 和dockercompose.yaml

This commit is contained in:
ranee@ubuntu
2023-05-07 02:34:58 +08:00
parent 0d0998ec3c
commit 157a83711f
6 changed files with 146 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
version: '3'
services:
redis:
image: redis
ports:
- "63799:6379"
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
LANG: C.UTF-8
TZ: Asia/Shanghai
MYSQL_CHARSET: utf8mb4
MYSQL_COLLATION: utf8mb4_unicode_ci
ports:
- "3306:3306"
flask:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
depends_on:
- redis
- mysql
restart: always
command: sh -c "./start.sh"