-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 912 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 912 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
39
40
41
42
43
44
services:
postgres:
image: postgres:16
container_name: vimaltech-postgres
environment:
POSTGRES_DB: contactdb
POSTGRES_USER: contactuser
POSTGRES_PASSWORD: contactpass
TZ: Asia/Kolkata
ports:
- "5432:5432"
volumes:
- vimaltech_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U contactuser -d contactdb"]
interval: 10s
timeout: 5s
retries: 5
networks:
- monitoring-network
contact-api:
build: .
container_name: vimaltech-contact-api
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
env_file:
- .env.prod
environment:
SPRING_PROFILES_ACTIVE: prod
restart: unless-stopped
networks:
- monitoring-network
volumes:
vimaltech_pgdata:
networks:
monitoring-network:
name: monitoring-network