44 lines
819 B
Markdown
44 lines
819 B
Markdown
# Palace - Bubo's Memory Palace
|
|
|
|
## Deployment
|
|
|
|
### Option 1: IndexedDB Only (No Backend)
|
|
|
|
```bash
|
|
# Build and run frontend only
|
|
docker-compose -f docker-compose.indexeddb.yml up -d
|
|
```
|
|
|
|
### Option 2: Full Stack with Backend
|
|
|
|
```bash
|
|
# Build and run frontend + backend
|
|
docker-compose up -d
|
|
```
|
|
|
|
### Production Deployment
|
|
|
|
For palace.raphaelforment.fr:
|
|
|
|
1. **IndexedDB version:**
|
|
```bash
|
|
docker build -f Dockerfile.frontend -t palace-frontend .
|
|
docker run -p 80:80 palace-frontend
|
|
```
|
|
|
|
2. **Full stack version:**
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
|
|
The frontend automatically detects the production domain and connects to the backend API at port 3001.
|
|
|
|
### Ports
|
|
|
|
- Frontend: 80
|
|
- Backend API: 3001
|
|
|
|
### Data Persistence
|
|
|
|
The backend uses SQLite with a persistent volume mounted at `/data/palace.db`.
|