47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
services:
|
|
voicehub:
|
|
image: ghcr.io/laoshuikaixue/voicehub:latest
|
|
ports:
|
|
- '3000:3000'
|
|
environment:
|
|
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
|
|
- REDIS_URL=redis://default:your-redis-password-here@redis:6379
|
|
- JWT_SECRET=your-jwt-secret-here
|
|
- NODE_ENV=production
|
|
- SKIP_BUILD=true
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
image: ghcr.io/laoshuikaixue/voicehub-postgres:latest
|
|
environment:
|
|
- POSTGRES_USER=user
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=voicehub
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U user -d voicehub']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
command: >
|
|
redis-server
|
|
--requirepass your-redis-password-here
|
|
--appendonly yes
|
|
volumes:
|
|
- redis_data:/data
|
|
ports:
|
|
- '6379:6379'
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|