chore: Remove nginx - use direct Caddy routing
- Remove nginx service from docker-compose - Services bind to localhost:3000/3001 only - Add Caddy configuration guide - Update README with simplified structure - External reverse proxy handles SSL/routing
This commit is contained in:
@@ -34,35 +34,39 @@ npm install
|
||||
|
||||
# 2. Set up environment
|
||||
cp .env.example .env
|
||||
# Edit .env with your values (see docs/SETUP-INFRASTRUCTURE.md)
|
||||
# Edit .env with your values
|
||||
|
||||
# 3. Create required directories
|
||||
# 3. Create public directory
|
||||
mkdir -p frontend/public
|
||||
|
||||
# 4. Start with Docker Compose
|
||||
# 4. Start services
|
||||
docker-compose up -d --build
|
||||
|
||||
# 6. Initialize database (first time only)
|
||||
# 5. Initialize database (first time only)
|
||||
docker-compose exec backend npx prisma db push
|
||||
|
||||
# 7. Deploy Solana program (optional, for token features)
|
||||
cd anchor-program
|
||||
anchor deploy
|
||||
# 6. Configure Caddy (see docs/CADDY-CONFIG.md)
|
||||
# Services expose ports 3000 (frontend) and 3001 (backend) on localhost
|
||||
```
|
||||
|
||||
See `docs/CADDY-CONFIG.md` for reverse proxy setup.
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
coop-credits/
|
||||
├── anchor-program/ # Solana Anchor program for $COOP token
|
||||
├── backend/ # Express API server
|
||||
├── frontend/ # Next.js dashboard
|
||||
├── shared/ # Shared types and utilities
|
||||
├── docker/ # Docker configurations
|
||||
├── deployment/ # Deployment scripts
|
||||
└── docker-compose.yml # Full stack orchestration
|
||||
├── anchor-program/ # Solana Anchor program for $COOP token
|
||||
├── backend/ # Express API server
|
||||
├── frontend/ # Next.js dashboard
|
||||
├── shared/ # Shared types and utilities
|
||||
├── docs/ # Documentation
|
||||
│ └── CADDY-CONFIG.md # Reverse proxy setup
|
||||
├── docker-compose.yml # Docker orchestration (no nginx)
|
||||
└── .env.example # Environment template
|
||||
```
|
||||
|
||||
**Note:** No internal reverse proxy. Use Caddy/Nginx/Traefik externally.
|
||||
|
||||
## User Flow
|
||||
|
||||
1. **Login** → User visits coop.hobokenchicken.com, authenticates with Plex
|
||||
|
||||
Reference in New Issue
Block a user