forked from sathwikshetty33/InterXAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (94 loc) · 2.21 KB
/
docker-compose.yml
File metadata and controls
101 lines (94 loc) · 2.21 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# version: '3.8'
services:
# Frontend Service
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: interxai-frontend
ports:
- "3000:80"
environment:
- VITE_API_URL=http://backend:8000
depends_on:
- backend
networks:
- interxai-network
restart: unless-stopped
# Backend Service
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: interxai-backend
ports:
- "8000:8000"
env_file:
- ./core/.env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/interxai
- REDIS_URL=redis://redis:6379/0
# depends_on:
# - db
# - redis
networks:
- interxai-network
restart: unless-stopped
# volumes:
# - static_volume:/app/staticfiles
# - media_volume:/app/media
# # PostgreSQL Database
# db:
# image: postgres:15-alpine
# container_name: interxai-db
# environment:
# - POSTGRES_DB=interxai
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - interxai-network
# restart: unless-stopped
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U postgres"]
# interval: 10s
# timeout: 5s
# retries: 5
# Redis Cache (for session storage and caching)
# redis:
# image: redis:7-alpine
# container_name: interxai-redis
# ports:
# - "6379:6379"
# networks:
# - interxai-network
# restart: unless-stopped
# healthcheck:
# test: ["CMD", "redis-cli", "ping"]
# interval: 10s
# timeout: 5s
# retries: 5
# Nginx Reverse Proxy (Optional - for production)
# nginx:
# image: nginx:alpine
# container_name: interxai-nginx
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# - static_volume:/app/staticfiles
# depends_on:
# - frontend
# - backend
# networks:
# - interxai-network
# restart: unless-stopped
networks:
interxai-network:
driver: bridge
# volumes:
# postgres_data:
# static_volume:
# media_volume: