-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (44 loc) · 943 Bytes
/
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
48
49
version: '3.7'
services:
db:
#hostname: db
image: ankane/pgvector
ports:
- 5432:5432
restart: always
env_file:
- ./backend/db_secrets.env
#volumes:
# - ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
backend:
environment:
- PYTHONUNBUFFERED=1
env_file:
- ./backend/secrets.env
- ./backend/db_secrets.env
build:
context: backend
dockerfile: Dockerfile
command: uvicorn main:app --reload --host 0.0.0.0 --port 8000
ports:
- 8000:8000
volumes:
- ./backend/app:/app
depends_on:
- db
frontend:
build:
context: frontend
dockerfile: Dockerfile
#command: npm start
ports:
- 3000:3000
depends_on:
- backend
volumes:
- ./frontend/app:/app
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
- FAST_REFRESH=false
- WDS_SOCKET_PORT=3000