System15 / docker-compose.yml
yamilogic's picture
Deploy SMTP Auth System to Hugging Face Space
50535d1
Raw
History Blame Contribute Delete
558 Bytes
version: '3.8'
services:
backend:
build: ./backend
ports:
- "8000:8000"
volumes:
- ./backend:/app
# Load SMTP settings and key variables from backend/.env automatically
env_file:
- ./backend/.env
# Override DATABASE_URL so it uses the container path
environment:
- DATABASE_URL=sqlite:////app/users.db
restart: always
frontend:
build: ./frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
restart: always