Initial commit: AutonetSellCar platform with deployment system
- Frontend: Next.js 14 with TypeScript - Backend: FastAPI with SQLAlchemy - Agent: Carmodoo sync agent - Deployment: Docker Compose based staging/production setup - Scripts: Automated deployment with rollback support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
61
docker-compose.production.yml
Normal file
61
docker-compose.production.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: autonet-frontend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- NEXT_PUBLIC_API_URL=http://192.168.0.202:8000
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- autonet-production
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: autonet-backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- ENV=production
|
||||
volumes:
|
||||
- ./backend/uploads:/app/uploads
|
||||
- backend-prod-data:/app/data
|
||||
- ./backend/.env:/app/.env:ro
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- autonet-production
|
||||
|
||||
carmodoo-agent:
|
||||
build:
|
||||
context: ./agent
|
||||
dockerfile: Dockerfile
|
||||
container_name: carmodoo-agent
|
||||
environment:
|
||||
- ENV=production
|
||||
volumes:
|
||||
- agent-data:/app/data
|
||||
- agent-logs:/app/logs
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- autonet-production
|
||||
|
||||
networks:
|
||||
autonet-production:
|
||||
name: autonet-production-network
|
||||
|
||||
volumes:
|
||||
backend-prod-data:
|
||||
name: autonet-backend-prod-data
|
||||
agent-data:
|
||||
name: autonet-agent-data
|
||||
agent-logs:
|
||||
name: autonet-agent-logs
|
||||
Reference in New Issue
Block a user