version: '3' services: frontend: image: crpi-7ub5pdu5y0ps1uyh.cn-hangzhou.personal.cr.aliyuncs.com/taskpyro/taskpyro-frontend:1.0 ports: - "${FRONTEND_PORT:-7789}:${FRONTEND_PORT:-7789}" environment: - PORT=${FRONTEND_PORT:-7789} - SERVER_NAME=${SERVER_NAME:-localhost} - BACKEND_PORT=${BACKEND_PORT:-8000} - API_URL=http://${SERVER_NAME}:${BACKEND_PORT:-8000} - TZ=Asia/Shanghai env_file: - .env depends_on: - api api: image: crpi-7ub5pdu5y0ps1uyh.cn-hangzhou.personal.cr.aliyuncs.com/taskpyro/taskpyro-api:1.0 ports: - "${BACKEND_PORT:-8000}:${BACKEND_PORT:-8000}" environment: - PORT=${BACKEND_PORT:-8000} - PYTHONPATH=/app - CORS_ORIGINS=http://localhost:${FRONTEND_PORT:-7789},http://127.0.0.1:${FRONTEND_PORT:-7789} - TZ=Asia/Shanghai - WORKERS=${WORKERS:-1} volumes: - /opt/taskpyrodata/static:/app/../static - /opt/taskpyrodata/logs:/app/../logs - /opt/taskpyrodata/data:/app/data env_file: - .env init: true restart: unless-stopped