Initial commit
This commit is contained in:
57
web/docker-compose.local.yml
Normal file
57
web/docker-compose.local.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user