- 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>
37 lines
744 B
YAML
37 lines
744 B
YAML
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
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
networks:
|
|
- mongolcar-network
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: autonet-backend
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- ./backend/.env
|
|
volumes:
|
|
- /opt/autonet/production/backend/uploads:/app/uploads
|
|
restart: unless-stopped
|
|
networks:
|
|
- mongolcar-network
|
|
|
|
networks:
|
|
mongolcar-network:
|
|
external: true
|