33 lines
942 B
YAML
33 lines
942 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
tt-booking:
|
|
build: .
|
|
ports:
|
|
- '3000:3000'
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_URL=/app/data/sqlite.db
|
|
- NEXTAUTH_URL=http://localhost:3000
|
|
- NEXTAUTH_SECRET=your-secret-key-here-make-this-very-long-and-random
|
|
- EMAIL_USER=your-email@gmail.com
|
|
- EMAIL_PASSWORD=your-app-password-here
|
|
- ADMIN_EMAIL=admin@example.com
|
|
- ADMIN_PASSWORD=admin123
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|
|
|
|
# Nginx reverse proxy (optional, for production deployment)
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- '80:80'
|
|
- '443:443'
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./ssl:/etc/nginx/ssl:ro
|
|
depends_on:
|
|
- tt-booking
|
|
restart: unless-stopped
|