-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·100 lines (92 loc) · 2.54 KB
/
docker-compose.yml
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
services:
app-admin:
build:
context: ./app-admin
dockerfile: Dockerfile
ports:
- '3001:3000'
depends_on:
- mongo
environment:
- PAYLOAD_SECRET=${PAYLOAD_SECRET}
- PAYLOAD_PUBLIC_DATABASE_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:27017
- PAYLOAD_PUBLIC_ADMIN_URL=https://${DOMAIN}
restart: always
app-frontend:
build:
context: ./app-frontend
dockerfile: Dockerfile
args:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- BACKEND_URL_PREFIX=https://${DOMAIN}
- ASTRA_DB_APPLICATION_TOKEN=${ASTRA_DB_APPLICATION_TOKEN}
- ASTRA_DB_ENDPOINT=${ASTRA_DB_ENDPOINT}
- ASTRA_DB_NAMESPACE=${ASTRA_DB_NAMESPACE}
ports:
- '3000:3000'
restart: always
app-backend:
build:
context: ./app-backend
dockerfile: Dockerfile
ports:
- '8000:8000'
depends_on:
- redis
environment:
- FRONTEND_CORS_URL=http://a-iep.org
- PAYLOAD_CMS_URL=http://payload:3001/cms/api
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
restart: always
celery:
build:
context: ./app-backend
dockerfile: Dockerfile.celery
depends_on:
- redis
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
redis:
image: redis:6.0
command: ["redis-server", "--appendonly", "yes", "--bind", "0.0.0.0"]
ports:
- "6379:6379"
user: "redis"
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333" # Expose REST API
- "6334:6334" # Expose gRPC API
volumes:
- qdrant_data:/qdrant/storage
mongo:
image: mongo:latest
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
volumes:
- /etc/letsencrypt/live/${DOMAIN}:/etc/nginx/ssl/${DOMAIN}:ro
- /etc/letsencrypt/live/www.${DOMAIN}:/etc/nginx/ssl/www.${DOMAIN}:ro
- /etc/letsencrypt/archive/${DOMAIN}:/etc/nginx/archive/${DOMAIN}:ro
- /etc/letsencrypt/archive/www.${DOMAIN}:/etc/nginx/archive/www.${DOMAIN}:ro
ports:
- '443:443'
depends_on:
- app-frontend
- app-admin
- app-backend
restart: always
volumes:
qdrant_data:
mongo_data: