Files
Aether/deploy/docker-compose.data.yml
T
fawney19 763ff03a7b refactor: 拆分 gateway 单体为独立 crate,新增 systemd 部署方案
将 gateway 内部的 model-fetch、provider-transport、scheduler-core、
usage-runtime、video-tasks-core 模块提取为独立 crate;重构 gateway
内部模块结构(state/router/cache/data/query 等);移除大量遗留模块
文件;新增 systemd 二进制部署骨架及相关文档;更新前端 usage 相关
API 和组件。
2026-04-05 20:23:16 +08:00

47 lines
1.2 KiB
YAML

services:
postgres:
image: ${POSTGRES_IMAGE:-postgres:15}
container_name: aether-postgres
environment:
POSTGRES_DB: ${DB_NAME:-aether}
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD}
TZ: ${TZ:-Asia/Shanghai}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "127.0.0.1:${DB_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres} -d ${DB_NAME:-aether}"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: ${REDIS_IMAGE:-redis:7-alpine}
container_name: aether-redis
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
TZ: ${TZ:-Asia/Shanghai}
volumes:
- redis_data:/data
command: >
sh -c 'exec redis-server
--appendonly yes
--appendfsync everysec
--save 60 1000
--requirepass "$$REDIS_PASSWORD"'
ports:
- "127.0.0.1:${REDIS_PORT:-6379}:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli -a \"$$REDIS_PASSWORD\" ping | grep -q PONG"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
volumes:
postgres_data:
redis_data: