-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.8'
services:
# Backend FastAPI Service
backend:
build:
context: ./test
dockerfile: Dockerfile
container_name: inventory-backend
ports:
- "8002:8002"
environment:
- PYTHONPATH=/app
- MONGODB_URI=mongodb+srv://terminalishere127:hello@cluster0.ezhgpwx.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
- GEMINI_API_KEY=AIzaSyDsi82MHuNMwZyUoJ5q6xN8yd9Q4yBw5gM
volumes:
- ./test:/app
networks:
- inventory-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Frontend Vue.js Service
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: inventory-frontend
ports:
- "3000:80"
depends_on:
- backend
networks:
- inventory-network
volumes:
- ./frontend/src:/app/src:ro
environment:
- VUE_APP_API_BASE_URL=http://localhost:8002
networks:
inventory-network:
driver: bridge
# Optional: Add a volume for persistent data if using local database
# volumes:
# mongodb_data: