-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (40 loc) · 812 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
43 lines (40 loc) · 812 Bytes
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
version: '2'
name: ai-chatbot-framework-dev
services:
mongodb:
image: mongo:4.2.20
hostname: mongodb
volumes:
- mongodbdata:/data
app:
build:
context: .
dockerfile: Dockerfile
command:
- /bin/bash
- -c
- |
python manage.py migrate
fastapi run --host=0.0.0.0 --reload --port=8080
environment:
APPLICATION_ENV: Development
MONGODB_HOST: mongodb://mongodb:27017
ports:
- 8080:8080
volumes:
- ./app:/usr/src/app/app
depends_on:
- migrate
- mongodb
frontend:
build:
context: ./frontend
dockerfile: dev.Dockerfile
volumes:
- ./frontend/app:/app/app
- ./frontend/public:/app/public
restart: always
ports:
- 3000:3000
volumes:
mongodbdata: