add docker-compose up mysql

This commit is contained in:
FerdinandWard 2022-08-08 17:10:55 +08:00
parent 713e2792e3
commit 0f313179a8
2 changed files with 13 additions and 10 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ myapp/test
/myapp/static/appbuilder/mnt
/myapp/static/appbuilder/assets/
/images/web/target-detection/yolo/
/install/docker/data/mysql/

View File

@ -8,13 +8,15 @@ services:
ports:
- "6379:6379"
mysql:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: admin
ports:
- "3306:3306"
# mysql:
# image: mysql:5.7
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD: admin
# ports:
# - "3306:3306"
# volumes:
# - ./data/mysql:/var/lib/mysql
frontend:
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:frontend-2022.08.01
@ -28,8 +30,8 @@ services:
myapp:
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2022.08.01
restart: unless-stopped
command: ['bash','-c','/entrypoint.sh'] # 生产模式
restart: always
command: ['bash','-c','/entrypoint.sh']
environment:
STAGE: 'dev'
REDIS_HOST: 'host.docker.internal'
@ -42,7 +44,7 @@ services:
# - "8080:80"
depends_on:
- redis
- mysql
# - mysql
volumes:
- ../../myapp/static/appbuilder/frontend:/data/web/frontend
- ../../myapp/:/home/myapp/myapp/