mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-30 01:44:59 +08:00
core: chaneg affine docker-compose.yml (#4161)
This commit is contained in:
parent
0ebbfb1a48
commit
b8c3d4aaac
@ -16,54 +16,6 @@ additionalProperties:
|
||||
ko: 웹 포트
|
||||
zh: 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: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
key: postgresql
|
||||
|
||||
@ -5,30 +5,41 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3010
|
||||
- ${PANEL_APP_PORT_HTTP_5555}:5555
|
||||
command:
|
||||
['sh', '-c', 'node ./scripts/self-host-predeploy && node ./dist/index.js']
|
||||
volumes:
|
||||
- ./data/storage:/root/.affine/storage
|
||||
- ./data/config:/root/.affine/config
|
||||
networks:
|
||||
- 1panel-network
|
||||
environment:
|
||||
- NODE_OPTIONS="--import=./scripts/register.js"
|
||||
- AFFINE_CONFIG_PATH=/root/.affine/config
|
||||
- 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}
|
||||
- NODE_ENV=production
|
||||
- AFFINE_ADMIN_EMAIL=${AFFINE_ADMIN_EMAIL}
|
||||
- AFFINE_ADMIN_PASSWORD=${AFFINE_ADMIN_PASSWORD}
|
||||
logging:
|
||||
driver: 'json-file'
|
||||
options:
|
||||
max-size: '1000m'
|
||||
- AFFINE_INDEXER_ENABLED=false
|
||||
depends_on:
|
||||
affine_migration:
|
||||
condition: service_completed_successfully
|
||||
labels:
|
||||
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:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user