Files
appstore-1panel/dockge/affine/docker-compose.yml
engine-labs-app[bot] ba8121f56f fix(app-metadata,compose): fix schema, deterministic generation and Docker Compose errors
This change addresses critical issues in app metadata schema, ensures deterministic
process-apps.py outputs, and corrects Docker Compose config errors for select apps.

- Ensures all apps' data.yml root and formFields schema required fields are present
- Fixes illegal Docker Compose fields (e.g. restart: no → "no", removes obsolete version fields)
- Removes illegal " = " in environment variable declarations
- Adds missing ports to env templates (e.g. zerotier)
- Resolves all validation, duplicate, tag, and basic resource consistency errors
- process-apps.py output is now idempotent and repeatable

Apps deploy and test through compose config without validation errors.
2025-10-27 03:11:36 +00:00

37 lines
1.0 KiB
YAML

networks:
1panel-network:
external: true
services:
affine:
command:
- sh
- -c
- node ./scripts/self-host-predeploy && node ./dist/index.js
container_name: affine
env_file:
- ./envs/global.env
- .env
environment:
- NODE_OPTIONS="--import=./scripts/register.js"
- AFFINE_CONFIG_PATH=/root/.affine/config
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}
- NODE_ENV=production
- TELEMETRY_ENABLE=false
- AFFINE_SERVER_HOST=localhost
- AFFINE_SERVER_PORT=3010
- AFFINE_SERVER_HTTPS=false
- AFFINE_SERVER_EXTERNAL_URL=http://127.0.0.1:3010
image: ghcr.io/toeverything/affine-graphql:stable-e98f035
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3010
- ${PANEL_APP_PORT_COMMUNICATION}:5555
restart: always
volumes:
- ${AFFINE_ROOT_PATH}/config:/root/.affine/config
- ${AFFINE_ROOT_PATH}/storage:/root/.affine/storage