version: '3.8' services: app: image: node:20-alpine working_dir: /app ports: - "3000:3000" - "3001:3001" volumes: - .:/app - ./data:/app/data - ./uploads:/app/server/uploads environment: - NODE_ENV=production - PORT=3000 - DB_PATH=/app/data/school.db - JWT_SECRET=africa-alert-production-secret-2024 command: > sh -c " cd server && node src/database/init.js && node src/index.js & cd ../client && npx serve -s dist -l 3000 " restart: unless-stopped