-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
44 lines (38 loc) · 842 Bytes
/
compose.yaml
File metadata and controls
44 lines (38 loc) · 842 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-db:
image: postgres:17.4-alpine3.21
restart: always
container_name: postgres-db
environment:
POSTGRES_PASSWORD: qPC765buuL3qjnHxmSn8
POSTGRES_USER: crm
POSTGRES_DB: crm
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "crm"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data_crm:/var/lib/postgresql/data2
server:
build:
context: .
container_name: crm-backend-server
ports:
- "8080:8080"
depends_on:
postgres-db:
condition: service_healthy
links:
- postgres-db
environment:
- POSTGRES_URL=jdbc:postgresql://localhost:5432/crm
# adminer:
# image: adminer
# restart: always
# ports:
# - 8080:8080
volumes:
postgres_data_crm: