Files
BYW-VoiceHub/docker-compose/docker-compose-prebuild-nju.yml
T

33 lines
834 B
YAML

services:
voicehub:
image: ghcr.nju.edu.cn/laoshuikaixue/voicehub:latest
ports:
- '3000:3000'
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/voicehub?sslmode=disable
- JWT_SECRET=your-jwt-secret-here
- NODE_ENV=production
- SKIP_BUILD=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: ghcr.nju.edu.cn/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
volumes:
postgres_data: