Update docker-compose.production.yml for CI/CD
- Use mongolcar-network (external) for DB/Redis access - Add NEXT_PUBLIC_API_URL as build arg - Simplify configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- NEXT_PUBLIC_API_URL=https://autonetsellcar.com
|
||||
container_name: autonet-frontend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- NEXT_PUBLIC_API_URL=https://autonetsellcar.com
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- autonet-production
|
||||
- mongolcar-network
|
||||
|
||||
backend:
|
||||
build:
|
||||
@@ -24,39 +23,14 @@ services:
|
||||
container_name: autonet-backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- ENV=production
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
volumes:
|
||||
- ./backend/uploads:/app/uploads
|
||||
- backend-prod-data:/app/data
|
||||
- /opt/autonet/production/backend/uploads:/app/uploads
|
||||
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
|
||||
- mongolcar-network
|
||||
|
||||
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
|
||||
mongolcar-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user