-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.16 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
# version: '3.8' # Removed to avoid warning
services:
resshare-backend:
build:
context: .
dockerfile: Dockerfile
container_name: resshare-backend
ports:
- "5000:5000"
- "8080:8080" # IPFS Gateway
- "9094:9094" # IPFS Cluster API
environment:
# Set your Google API key here or use .env file
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- FLASK_ENV=production
- FLASK_SECRET_KEY=${FLASK_SECRET_KEY}
# Add your Vercel or other frontend URLs (comma-separated)
- CORS_ORIGINS=${CORS_ORIGINS:-}
- STORAGE_TYPE=${STORAGE_TYPE}
- KV_SERVICE_URL=${KV_SERVICE_URL}
volumes:
# Persist IPFS data
- ipfs_data:/root/.ipfs
# Persist IPFS Cluster data
- ipfs_cluster_data:/root/.ipfs-cluster
# Persist vector database
- vector_db:/app/backend/vector_db
restart: "no"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5000/ && curl -f http://localhost:8080/api/v0/version && curl -f http://localhost:9094/api/v0/id"]
interval: 30s
timeout: 15s
retries: 3
start_period: 120s
volumes:
ipfs_data:
ipfs_cluster_data:
vector_db: