fix: Update staging docker-compose to share production DB

🤖 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
2025-12-31 15:37:23 +09:00
parent a406535815
commit 17ec5f108b

View File

@@ -1,16 +1,15 @@
version: '3.8'
services:
frontend-staging:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=http://192.168.0.202:8001
container_name: autonet-frontend-staging
ports:
- "3001:3000"
environment:
- NODE_ENV=staging
- NEXT_PUBLIC_API_URL=http://192.168.0.202:8001
depends_on:
- backend-staging
restart: unless-stopped
@@ -26,11 +25,9 @@ services:
- "8001:8000"
environment:
- ENV=staging
- DATABASE_URL=sqlite:///./autonet_staging.db
volumes:
- ./backend/uploads:/app/uploads
- backend-staging-data:/app/data
- ./backend/.env:/app/.env:ro
- /opt/autonet/production/backend/autonet.db:/app/autonet.db
restart: unless-stopped
networks:
- autonet-staging
@@ -38,7 +35,3 @@ services:
networks:
autonet-staging:
name: autonet-staging-network
volumes:
backend-staging-data:
name: autonet-backend-staging-data