58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
# Docker Compose for Local Development
|
|
#
|
|
# Access at http://localhost:7743
|
|
#
|
|
# Usage:
|
|
# docker-compose -f docker-compose.local.yml up -d --build # Start
|
|
# docker-compose -f docker-compose.local.yml down # Stop
|
|
# docker-compose -f docker-compose.local.yml logs -f # View logs
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: server/Dockerfile
|
|
container_name: feeld-web-backend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/data
|
|
environment:
|
|
- DATA_PATH=/data
|
|
- PORT=3001
|
|
networks:
|
|
- feeld-web
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: feeld-web-frontend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- .:/app
|
|
- /app/node_modules
|
|
environment:
|
|
- VITE_API_URL=
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- feeld-web
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: feeld-web-nginx
|
|
restart: unless-stopped
|
|
ports:
|
|
- "7743:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
depends_on:
|
|
- backend
|
|
- frontend
|
|
networks:
|
|
- feeld-web
|
|
|
|
networks:
|
|
feeld-web:
|
|
name: feeld-web-local
|