core: chaneg affine docker-compose.yml (#4161)
This commit is contained in:
parent
0ebbfb1a48
commit
b8c3d4aaac
|
|
@ -16,54 +16,6 @@ additionalProperties:
|
||||||
ko: 웹 포트
|
ko: 웹 포트
|
||||||
zh: HTTP 端口
|
zh: HTTP 端口
|
||||||
zh-Hant: HTTP 埠
|
zh-Hant: HTTP 埠
|
||||||
- default: 5555
|
|
||||||
envKey: PANEL_APP_PORT_HTTP_5555
|
|
||||||
labelEn: Port
|
|
||||||
labelZh: 端口
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
label:
|
|
||||||
en: Port
|
|
||||||
ja: ポート
|
|
||||||
ms: Port
|
|
||||||
pt-br: Porta
|
|
||||||
ru: Порт
|
|
||||||
ko: 포트
|
|
||||||
zh: 端口
|
|
||||||
zh-Hant: 埠
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: AFFINE_ADMIN_EMAIL
|
|
||||||
labelEn: email
|
|
||||||
labelZh: 管理员邮箱
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
label:
|
|
||||||
en: email
|
|
||||||
ja: メール
|
|
||||||
ms: E-mel
|
|
||||||
pt-br: E-mail
|
|
||||||
ru: Электронная почта
|
|
||||||
ko: 이메일
|
|
||||||
zh: 管理员邮箱
|
|
||||||
zh-Hant: 管理员邮箱
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: AFFINE_ADMIN_PASSWORD
|
|
||||||
labelEn: password
|
|
||||||
labelZh: 管理员密码
|
|
||||||
required: true
|
|
||||||
type: password
|
|
||||||
label:
|
|
||||||
en: password
|
|
||||||
ja: パスワード
|
|
||||||
ms: Kata laluan
|
|
||||||
pt-br: Senha
|
|
||||||
ru: Пароль
|
|
||||||
ko: 비밀번호
|
|
||||||
zh: 管理员密码
|
|
||||||
zh-Hant: 管理员密码
|
|
||||||
- default: ""
|
- default: ""
|
||||||
envKey: PANEL_DB_HOST
|
envKey: PANEL_DB_HOST
|
||||||
key: postgresql
|
key: postgresql
|
||||||
|
|
|
||||||
|
|
@ -5,30 +5,41 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:3010
|
- ${PANEL_APP_PORT_HTTP}:3010
|
||||||
- ${PANEL_APP_PORT_HTTP_5555}:5555
|
|
||||||
command:
|
|
||||||
['sh', '-c', 'node ./scripts/self-host-predeploy && node ./dist/index.js']
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/storage:/root/.affine/storage
|
- ./data/storage:/root/.affine/storage
|
||||||
- ./data/config:/root/.affine/config
|
- ./data/config:/root/.affine/config
|
||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
environment:
|
environment:
|
||||||
- NODE_OPTIONS="--import=./scripts/register.js"
|
|
||||||
- AFFINE_CONFIG_PATH=/root/.affine/config
|
|
||||||
- REDIS_SERVER_HOST=${PANEL_REDIS_HOST}
|
- REDIS_SERVER_HOST=${PANEL_REDIS_HOST}
|
||||||
- REDIS_SERVER_PORT=6379
|
- REDIS_SERVER_PORT=6379
|
||||||
- REDIS_SERVER_PASSWORD=${PANEL_REDIS_ROOT_PASSWORD}
|
- REDIS_SERVER_PASSWORD=${PANEL_REDIS_ROOT_PASSWORD}
|
||||||
- DATABASE_URL=postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
|
- DATABASE_URL=postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
|
||||||
- NODE_ENV=production
|
- AFFINE_INDEXER_ENABLED=false
|
||||||
- AFFINE_ADMIN_EMAIL=${AFFINE_ADMIN_EMAIL}
|
depends_on:
|
||||||
- AFFINE_ADMIN_PASSWORD=${AFFINE_ADMIN_PASSWORD}
|
affine_migration:
|
||||||
logging:
|
condition: service_completed_successfully
|
||||||
driver: 'json-file'
|
|
||||||
options:
|
|
||||||
max-size: '1000m'
|
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
||||||
|
affine_migration:
|
||||||
|
image: ghcr.io/toeverything/affine-graphql:stable
|
||||||
|
container_name: ${CONTAINER_NAME}_migration_job
|
||||||
|
volumes:
|
||||||
|
- ./data/storage:/root/.affine/storage
|
||||||
|
- ./data/config:/root/.affine/config
|
||||||
|
command: [ 'sh', '-c', 'node ./scripts/self-host-predeploy.js' ]
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
environment:
|
||||||
|
- REDIS_SERVER_HOST=${PANEL_REDIS_HOST}
|
||||||
|
- REDIS_SERVER_PORT=6379
|
||||||
|
- REDIS_SERVER_PASSWORD=${PANEL_REDIS_ROOT_PASSWORD}
|
||||||
|
- DATABASE_URL=postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
|
||||||
|
- AFFINE_INDEXER_ENABLED=false
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
skipStatusCheck: "true"
|
||||||
networks:
|
networks:
|
||||||
1panel-network:
|
1panel-network:
|
||||||
external: true
|
external: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue