-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.5 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
# Backend Service (Python)
backend:
build:
context: ./tough-backend
dockerfile: Dockerfile
container_name: tough-backend
ports:
- "3001:3001"
environment:
- FLASK_ENV=production
- PORT=3001
- HOST=0.0.0.0
- FRONTEND_URL=http://localhost:5173
- PYTHONUNBUFFERED=1
env_file:
- ./tough-backend/.env
volumes:
- ./tough-backend/tokens:/app/tokens
- ./tough-backend/data:/app/data
restart: unless-stopped
networks:
- tough-network
# Frontend Service
frontend:
build:
context: ./front-end
dockerfile: Dockerfile
container_name: tough-frontend
ports:
- "3000:80"
environment:
- NODE_ENV=production
- VITE_API_URL=http://localhost:3001/api
depends_on:
- backend
restart: unless-stopped
networks:
- tough-network
# Optional: Ollama for local AI (uncomment to enable)
# ollama:
# image: ollama/ollama:latest
# container_name: tough-ollama
# ports:
# - "11434:11434"
# volumes:
# - ollama_data:/root/.ollama
# restart: unless-stopped
# networks:
# - tough-network
# # Uncomment if you have GPU support
# # deploy:
# # resources:
# # reservations:
# # devices:
# # - driver: nvidia
# # count: 1
# # capabilities: [gpu]
networks:
tough-network:
driver: bridge
# Uncomment if using Ollama
# volumes:
# ollama_data: