split containers

This commit is contained in:
2026-01-29 00:40:29 -05:00
parent b2886cbcb0
commit f689689281
4 changed files with 61 additions and 7 deletions

View File

@@ -16,8 +16,10 @@ services:
timeout: 5s
retries: 5
web:
build: .
backend:
build:
context: .
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
PORT: 4000
@@ -36,5 +38,20 @@ services:
- ./backend:/app
- /app/node_modules
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
VITE_API_URL: http://localhost:4000/api
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
db_data: