56 lines
1.0 KiB
YAML
56 lines
1.0 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx.dev.conf:/etc/nginx/conf.d/default.conf
|
|
- ./logs/nginx:/var/log/nginx
|
|
depends_on:
|
|
- frontend
|
|
- backend
|
|
restart: unless-stopped
|
|
networks:
|
|
- fibdash-network
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev.frontend
|
|
ports:
|
|
- "5001:5001"
|
|
volumes:
|
|
- ./client:/app/client
|
|
- /app/node_modules
|
|
environment:
|
|
- NODE_ENV=development
|
|
- CHOKIDAR_USEPOLLING=true
|
|
networks:
|
|
- fibdash-network
|
|
command: npm run dev:frontend
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev.backend
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- ./src:/app/src
|
|
- /app/node_modules
|
|
environment:
|
|
- NODE_ENV=development
|
|
env_file:
|
|
- .env
|
|
networks:
|
|
- fibdash-network
|
|
command: npm run dev:backend
|
|
|
|
networks:
|
|
fibdash-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
node_modules: |