mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2025-01-18 13:53:59 +08:00
add docker-compose up mysql
This commit is contained in:
parent
713e2792e3
commit
0f313179a8
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ myapp/test
|
||||
/myapp/static/appbuilder/mnt
|
||||
/myapp/static/appbuilder/assets/
|
||||
/images/web/target-detection/yolo/
|
||||
/install/docker/data/mysql/
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user