-
Notifications
You must be signed in to change notification settings - Fork 714
/
Copy pathdocker-compose.dev.yml
56 lines (51 loc) · 1.11 KB
/
docker-compose.dev.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
version: '2'
services:
mongodb:
container_name: mongodb
image: mongo:4.2.20
hostname: mongodb
ports:
- "27017:27017"
volumes:
- mongodbdata:/data
migrate:
container_name: migrate
build:
context: .
dockerfile: Dockerfile
command: python manage.py migrate
environment:
APPLICATION_ENV: Development
APP_MONGODB_HOST: "mongodb://mongodb:27017/iky-ai"
depends_on:
- mongodb
app:
container_name: backend
build:
context: .
dockerfile: Dockerfile
command: fastapi run --host=0.0.0.0 --reload --port=8080
environment:
APPLICATION_ENV: Development
APP_MONGODB_HOST: "mongodb://mongodb:27017/iky-ai"
ports:
- 8080:8080
volumes:
- ./app:/usr/src/app/app
depends_on:
- migrate
- mongodb
frontend:
container_name: frontend
hostname: frontend
build:
context: ./frontend
dockerfile: dev.Dockerfile
volumes:
- ./frontend/app:/app/app
- ./frontend/public:/app/public
restart: always
ports:
- 3000:3000
volumes:
mongodbdata: