From 0a4cef27b435ee23978e8c5438bf1a24f0e6ce48 Mon Sep 17 00:00:00 2001 From: AutonetSellCar Deploy Date: Sun, 4 Jan 2026 09:56:48 +0900 Subject: [PATCH] Update docker-compose.production.yml for CI/CD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- docker-compose.production.yml | 40 ++++++----------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index e481ec3..bc63495 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -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