优化后端框架

This commit is contained in:
BBIT-Kai
2026-05-07 10:25:02 +08:00
parent c932419c73
commit f7a27d99e1
73 changed files with 1742 additions and 1596 deletions
+38
View File
@@ -0,0 +1,38 @@
services:
postgres:
image: postgres:18.3
container_name: ticket-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ticket
POSTGRES_USER: ticket
POSTGRES_PASSWORD: ticket_password
TZ: Asia/Shanghai
ports:
- "5432:5432"
volumes:
- platform_a_postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U platform -d platform"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:8
container_name: ticket-redis
restart: unless-stopped
command: ["redis-server", "--requirepass", "ticket_password", "--appendonly", "yes"]
ports:
- "6379:6379"
volumes:
- platform_a_redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "ticket_password", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
platform_a_postgres_data:
platform_a_redis_data: