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:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- NEXT_PUBLIC_API_URL=https://autonetsellcar.com
|
||||||
container_name: autonet-frontend
|
container_name: autonet-frontend
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- NEXT_PUBLIC_API_URL=https://autonetsellcar.com
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- autonet-production
|
- mongolcar-network
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
@@ -24,39 +23,14 @@ services:
|
|||||||
container_name: autonet-backend
|
container_name: autonet-backend
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
environment:
|
|
||||||
- ENV=production
|
|
||||||
env_file:
|
env_file:
|
||||||
- ./backend/.env
|
- ./backend/.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/uploads:/app/uploads
|
- /opt/autonet/production/backend/uploads:/app/uploads
|
||||||
- backend-prod-data:/app/data
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- autonet-production
|
- mongolcar-network
|
||||||
|
|
||||||
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:
|
networks:
|
||||||
autonet-production:
|
mongolcar-network:
|
||||||
name: autonet-production-network
|
external: true
|
||||||
|
|
||||||
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