-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (44 loc) · 1.21 KB
/
docker-compose.yaml
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: "3.8"
services:
intuitivoai_db:
image: postgres
container_name: intuitivoai_db
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=intuitivo_backchallenge
ports:
- "7898:5432"
intuitivoai_backend:
container_name: intuitivo_backchallenge_backend
build: ./backend/
command: >
bash -c "python manage.py wait_db
&& python manage.py migrate
&& python manage.py load_images
&& python manage.py runserver 0.0.0.0:8000
"
environment:
- DJANGO_SECRET_KEY=wol=bc5--nc_f%429=wdb8-u7=(w5v!6vq*nbo#s_xhrt5!0!n
- DJANGO_DEBUG=true
- DJANGO_ALLOWED_HOST=*
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=intuitivo_backchallenge
- POSTGRES_HOST=intuitivoai_db
- POSTGRES_PORT=5432
- DB_IGNORE_SSL=true
depends_on:
- intuitivoai_db
ports:
- "7171:8000"
intuitivoai_frontend:
container_name: intuitivo_backchallenge_frontend
build: ./frontend/intuitivoaichallenge/
command: "npm run dev"
environment:
- BACK_URL=http://0.0.0.0:7171/api
depends_on:
- intuitivoai_db
- intuitivoai_backend
ports:
- "7172:3000"