-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
38 lines (37 loc) · 927 Bytes
/
compose.dev.yml
File metadata and controls
38 lines (37 loc) · 927 Bytes
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
services:
app:
build: .
ports:
- "3123:3123"
environment:
- RDS_HOSTNAME=postgres
- RDS_USERNAME=AgriTech
- RDS_PASSWORD=ExtremeFarming2024!
- RDS_DB_NAME=db
- RDS_PORT=5432
- NODE_ENV=development
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl --fail --silent --show-error --output /dev/null http://localhost:3123/healthz"]
start_period: 3s
interval: 10s
timeout: 5s
retries: 3
postgres:
image: postgres:17.2
volumes:
- ./postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=AgriTech
- POSTGRES_PASSWORD=ExtremeFarming2024!
- POSTGRES_DB=db
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U AgriTech -d db"]
start_period: 3s
interval: 10s
timeout: 5s
retries: 3