-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
40 lines (36 loc) · 945 Bytes
/
compose.yml
File metadata and controls
40 lines (36 loc) · 945 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
version: "3.1"
services:
spring:
build: ./
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 30s
timeout: 10s
retries: 5
environment:
PROFILE: pro
DATASOURCE_URL: ${DATASOURCE_URL}
DATASOURCE_USERNAME: ${DATASOURCE_USERNAME}
DATASOURCE_PASSWORD: ${DATASOURCE_PASSWORD}
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: ${DATASOURCE_USERNAME}
POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD}
POSTGRES_DB: ${DATASOURCE_DB}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DATASOURCE_USERNAME} -d ${DATASOURCE_DB}" ]
interval: 10s
timeout: 10s
retries: 3
volumes:
postgres_data: