- Share production uploads directory for staging - Ensures image files are available in staging environment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
792 B
YAML
37 lines
792 B
YAML
services:
|
|
frontend-staging:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- NEXT_PUBLIC_API_URL=https://staging.autonetsellcar.com
|
|
container_name: autonet-frontend-staging
|
|
ports:
|
|
- "3001:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
depends_on:
|
|
- backend-staging
|
|
restart: unless-stopped
|
|
networks:
|
|
- mongolcar-network
|
|
|
|
backend-staging:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: autonet-backend-staging
|
|
ports:
|
|
- "8001:8000"
|
|
env_file:
|
|
- ./backend/.env
|
|
volumes:
|
|
- /opt/autonet/production/backend/uploads:/app/uploads
|
|
restart: unless-stopped
|
|
networks:
|
|
- mongolcar-network
|
|
|
|
networks:
|
|
mongolcar-network:
|
|
external: true
|