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:
AutonetSellCar Deploy
2026-01-04 09:56:48 +09:00
parent 9dafe48473
commit 0a4cef27b4

View File

@@ -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