fix(deploy): 生产部署 - 修复迁移服务入口配置
This commit is contained in:
@@ -28,7 +28,8 @@ services:
|
|||||||
|
|
||||||
migrate:
|
migrate:
|
||||||
image: ${CANVAS_BACKEND_IMAGE:?请先配置 CANVAS_BACKEND_IMAGE(必须包含镜像 digest)}
|
image: ${CANVAS_BACKEND_IMAGE:?请先配置 CANVAS_BACKEND_IMAGE(必须包含镜像 digest)}
|
||||||
command: ["migrate-schema", "up"]
|
entrypoint: ["migrate-schema"]
|
||||||
|
command: ["up"]
|
||||||
environment:
|
environment:
|
||||||
CANVAS_BACKEND_DATA_DIR: /data
|
CANVAS_BACKEND_DATA_DIR: /data
|
||||||
CANVAS_DATABASE_DRIVER: postgres
|
CANVAS_DATABASE_DRIVER: postgres
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ services:
|
|||||||
dockerfile: backend/Dockerfile
|
dockerfile: backend/Dockerfile
|
||||||
args:
|
args:
|
||||||
GOPROXY: ${GOPROXY:-https://goproxy.cn,direct}
|
GOPROXY: ${GOPROXY:-https://goproxy.cn,direct}
|
||||||
command: ["migrate-schema", "up"]
|
entrypoint: ["migrate-schema"]
|
||||||
|
command: ["up"]
|
||||||
environment:
|
environment:
|
||||||
CANVAS_BACKEND_DATA_DIR: /data
|
CANVAS_BACKEND_DATA_DIR: /data
|
||||||
CANVAS_DATABASE_DRIVER: postgres
|
CANVAS_DATABASE_DRIVER: postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user