-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
37 lines (35 loc) · 1.2 KB
/
Copy pathcompose.yaml
File metadata and controls
37 lines (35 loc) · 1.2 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
services:
postgres:
# 운영 PostgreSQL과 동일 이미지로 고정한다(digest 핀, S15P11A705-46).
# 테스트 컨테이너(PostgresContainerSupport)도 같은 태그를 쓴다.
image: pgvector/pgvector:0.8.5-pg16@sha256:1d533553fefe4f12e5d80c7b80622ba0c382abb5758856f52983d8789179f0fb
labels:
org.springframework.boot.service-connection: postgres
environment:
POSTGRES_DB: ${POSTGRES_DB:-pinlog}
POSTGRES_USER: ${POSTGRES_USER:-pinlog}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pinlog-local}
ports:
- "${POSTGRES_PORT:-15432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-pinlog} -d ${POSTGRES_DB:-pinlog}"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
redis:
# 테스트 컨테이너(PostgresRedisContainerSupport)도 같은 태그를 쓴다.
image: redis:7.4.5-alpine
labels:
org.springframework.boot.service-connection: redis
ports:
- "${REDIS_PORT:-16379}:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
volumes:
postgres-data: