-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.3 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
services:
node-service:
build:
context: ../node
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ../node:/app
- /app/node_modules
environment:
- NODE_ENV=development
- DATABASE_URL=postgresql://postgres:password@postgres-service:5432/agrimarketwatch
depends_on:
- postgres-service
- python-service
command: yarn dev
react-service:
build:
context: ../react
dockerfile: Dockerfile
ports:
- "3001:3000"
volumes:
- ../react:/app
- /app/node_modules
environment:
- NODE_ENV=development
command: yarn dev
depends_on:
- node-service
python-service:
build:
context: ../python
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ../python:/app
environment:
- PYTHON_ENV=development
- DATABASE_URL=postgresql://postgres:password@postgres-service:5432/agrimarketwatch
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
postgres-service:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: agrimarketwatch
ports:
- "5432:5432"
volumes:
- ../database/db-postgres:/var/lib/postgresql/data
volumes:
postgres_data: