1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-18 03:21:12 +08:00
2025-06-17 22:14:50 +08:00

36 lines
1.2 KiB
YAML

networks:
1panel-network:
external: true
services:
affine:
image: ghcr.io/toeverything/affine-graphql:stable-e98f035
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3010
- ${PANEL_APP_PORT_COMMUNICATION}:5555
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${AFFINE_ROOT_PATH}/config:/root/.affine/config
- ${AFFINE_ROOT_PATH}/storage:/root/.affine/storage
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
command:
[ 'sh', '-c', 'node ./scripts/self-host-predeploy && node ./dist/index.js' ]