-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
52 lines (47 loc) · 1.28 KB
/
docker-compose.dev.yaml
File metadata and controls
52 lines (47 loc) · 1.28 KB
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
services:
db:
image: timescale/timescaledb:latest-pg14
container_name: agroshield-db-dev
environment:
POSTGRES_DB: agroshield_dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: dev_password
ports:
- "5432:5432"
volumes:
- timescale-dev-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
api-server:
build:
context: .
dockerfile: apps/api-server/Dockerfile.dev
container_name: agroshield-api-dev
ports:
- "3001:3000"
environment:
- COMPOSE_BAKE=true
- NODE_ENV=development
- DB_NAME=agroshield_dev
- DB_USER=postgres
- DB_PASSWORD=dev_password
- DB_HOST=db
- DB_PORT=5432
- RISK_MARGIN=0.06
- OPS_COST=0.3
- PROJECT_PROFIT=0.15
- OPEN_METEO_RATE_LIMIT=60
volumes:
- ./apps/api-server/src:/app/apps/api-server/src
- ./packages/core-domain/src:/app/packages/core-domain/src
- ./packages/data-access/src:/app/packages/data-access/src
depends_on:
db:
condition: service_healthy
restart: unless-stopped
command: ["pnpm", "--filter", "@agroshield/api-server", "dev"]
volumes:
timescale-dev-data: