feat: Add Docker support with production and development configurations for backend and frontend

This commit is contained in:
MayaTheShy
2026-02-16 00:08:49 -05:00
parent a6edc0934c
commit 30647fca50
9 changed files with 580 additions and 1 deletions

43
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,43 @@
version: '3.8'
services:
# Backend server (development with hot reload)
server:
build:
context: ./server
dockerfile: Dockerfile.dev
container_name: turtle-server-dev
ports:
- "3001:3001"
- "3002:3002"
volumes:
- ./server:/app
- /app/node_modules
environment:
- NODE_ENV=development
command: npm run dev
networks:
- turtle-network
# Frontend client (development with hot reload)
client:
build:
context: ./client
dockerfile: Dockerfile.dev
container_name: turtle-client-dev
ports:
- "3000:3000"
volumes:
- ./client:/app
- /app/node_modules
environment:
- NODE_ENV=development
depends_on:
- server
command: npm run dev
networks:
- turtle-network
networks:
turtle-network:
driver: bridge