Updated to use port 80 locally.

This commit is contained in:
2026-01-02 13:36:56 -06:00
parent 607386f6fe
commit 5b751c2907
4 changed files with 196 additions and 16 deletions

View File

@ -2,31 +2,25 @@ services:
backend:
build: ./backend
expose:
- "8000"
labels:
- "coolify.port=8000"
- "80"
environment:
- DATABASE_URL=sqlite+aiosqlite:///./data/h2h.db
- JWT_SECRET=${JWT_SECRET:-your-secret-key-change-in-production-min-32-characters}
- JWT_ALGORITHM=HS256
- ACCESS_TOKEN_EXPIRE_MINUTES=30
- REFRESH_TOKEN_EXPIRE_DAYS=7
- PORT=8000
volumes:
- sqlite_data:/app/data
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
command: uvicorn app.main:app --host 0.0.0.0 --port 80 --reload
frontend:
build: ./frontend
expose:
- "5173"
labels:
- "coolify.port=5173"
- "80"
environment:
- VITE_API_URL=http://localhost:8000
- VITE_WS_URL=ws://localhost:8000
- PORT=5173
command: npm run dev -- --host
- VITE_API_URL=https://h2h-backend.host.letsgetnashty.com
- VITE_WS_URL=wss://h2h-backend.host.letsgetnashty.com
command: npm run dev -- --host --port 80
depends_on:
- backend