Ahmed766 commited on
Commit
620292e
·
verified ·
1 Parent(s): 4b4aaf0

Upload docker-compose.yml with huggingface_hub

Browse files
Files changed (1) hide show
  1. docker-compose.yml +69 -0
docker-compose.yml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ # PostgreSQL Database
5
+ postgres:
6
+ image: postgres:15
7
+ container_name: auranexus_postgres
8
+ environment:
9
+ POSTGRES_DB: auranexus
10
+ POSTGRES_USER: auranexus_user
11
+ POSTGRES_PASSWORD: auranexus_password
12
+ volumes:
13
+ - postgres_data:/var/lib/postgresql/data
14
+ ports:
15
+ - "5432:5432"
16
+ networks:
17
+ - auranexus_network
18
+
19
+ # Redis for caching and Celery
20
+ redis:
21
+ image: redis:7-alpine
22
+ container_name: auranexus_redis
23
+ ports:
24
+ - "6379:6379"
25
+ volumes:
26
+ - redis_data:/data
27
+ networks:
28
+ - auranexus_network
29
+
30
+ # API Server
31
+ api:
32
+ build:
33
+ context: .
34
+ dockerfile: Dockerfile.api
35
+ container_name: auranexus_api
36
+ ports:
37
+ - "8000:8000"
38
+ environment:
39
+ - DATABASE_URL=postgresql://auranexus_user:auranexus_password@postgres:5432/auranus
40
+ - REDIS_URL=redis://redis:6379/0
41
+ - SECRET_KEY=auranexus-secret-key-change-in-production
42
+ - CELERY_BROKER_URL=redis://redis:6379/0
43
+ depends_on:
44
+ - postgres
45
+ - redis
46
+ volumes:
47
+ - ./auranexus:/app
48
+ networks:
49
+ - auranexus_network
50
+ command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
51
+
52
+ # Frontend
53
+ frontend:
54
+ image: nginx:alpine
55
+ container_name: auranexus_frontend
56
+ ports:
57
+ - "3000:80"
58
+ volumes:
59
+ - ./frontend:/usr/share/nginx/html
60
+ networks:
61
+ - auranexus_network
62
+
63
+ volumes:
64
+ postgres_data:
65
+ redis_data:
66
+
67
+ networks:
68
+ auranexus_network:
69
+ driver: bridge