增加docker打包服务

This commit is contained in:
BBIT-Kai
2026-06-11 09:45:26 +08:00
parent bf87c09803
commit 0c5f62d201
13 changed files with 4645 additions and 0 deletions
-38
View File
@@ -1,38 +0,0 @@
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: