fix(0.2.1): !env 为 YAML 整值标签 —— URI 由 compose 组装后整值注入 (PS_SOURCE_URI/PS_STORAGE_URI)
This commit is contained in:
@@ -62,9 +62,9 @@ services:
|
||||
- ./powersync/sync-config.yaml:/config/sync-config.yaml:ro
|
||||
environment:
|
||||
POWERSYNC_CONFIG_PATH: /config/service.yaml
|
||||
# service.yaml 内 !env PS_* 引用
|
||||
PS_PG_PASSWORD: ${PG_PASSWORD}
|
||||
PS_STORAGE_PASSWORD: ${PS_STORAGE_PASSWORD}
|
||||
# service.yaml 内 !env PS_* 引用 (整值替换; URI 在此组装)
|
||||
PS_SOURCE_URI: postgresql://iboard021:${PG_PASSWORD}@pg:5432/iboard021?sslmode=disable
|
||||
PS_STORAGE_URI: postgresql://powersync_storage:${PS_STORAGE_PASSWORD}@pg:5432/iboard021?sslmode=disable
|
||||
PS_JWT_KEY_B64: ${POWERSYNC_JWT_KEY_B64:?POWERSYNC_JWT_KEY_B64 missing}
|
||||
ports:
|
||||
- "13002:8080"
|
||||
|
||||
Reference in New Issue
Block a user