Skip to content

Deployment

Sugers edited this page Jun 24, 2026 · 1 revision

Deployment

Docker Compose (Recommended)

# docker-compose.yml in the repository root
services:
  mysql:
    image: mysql:8.0
    environment:
      MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
      MYSQL_DATABASE: ${DB_NAME}
    ports:
      - "3307:3306"
    volumes:
      - mysql_data:/var/lib/mysql

  api:
    build: ./backend
    environment:
      DB_HOST: mysql
      DB_PORT: 3306
    ports:
      - "8000:8000"
    depends_on:
      mysql:
        condition: service_healthy

  web:
    build: ./frontend
    ports:
      - "80:80"
    depends_on:
      - api
docker compose up -d --build

Production Considerations

  1. Use a reverse proxy (Nginx) with HTTPS
  2. Set strong JWT_SECRET and ENCRYPTION_KEY
  3. Configure SMTP for notifications
  4. Set CORS_ORIGINS to your domain
  5. Regular database backups
  6. Monitor logs via ./mill logs

Clone this wiki locally