-
Notifications
You must be signed in to change notification settings - Fork 719
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 968 Bytes
/
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
version: '2'
name: ai-chatbot-framework
services:
frontend:
image: alfredfrancis/ai-chatbot-framework_frontend:latest
hostname: frontend
restart: always
depends_on:
- backend
backend:
image: alfredfrancis/ai-chatbot-framework_backend:latest
hostname: backend
restart: always
command:
- /bin/bash
- -c
- |
python manage.py migrate
fastapi run --host 0.0.0.0 --port 80 --root-path /api
environment:
MONGODB_HOST: mongodb://mongodb:27017
APPLICATION_ENV: Production
depends_on:
- mongodb
mongodb:
image: mongo:4.2.20
hostname: mongodb
ports:
- "27017:27017"
volumes:
- mongodbdata:/data
gateway:
image: nginx:1.13.3-alpine
hostname: gateway
volumes:
- ./scripts/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
depends_on:
- backend
- frontend
volumes:
mongodbdata: