-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 970 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 970 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
version: '3.8'
services:
pgvector:
container_name: gpt-vector-db
hostname: gpt-vector-db
image: ankane/pgvector
ports:
- 5432:5432
restart: always
environment:
- POSTGRES_DB=vectordb
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=testpwd
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./db:/var/lib/postgresql
networks:
- network
gpt4j:
hostname: spring-gpt4j
container_name: spring-gpt4j
build:
context: .
dockerfile: Dockerfile
environment: #환경 설정(database연결 및 profile 지정)
SPRING_DATASOURCE_URL: jdbc:postgresql://gpt-vector-db:5432/vectordb
SPRING_DATASOURCE_USERNAME: testuser
SPRING_DATASOURCE_PASSWORD: testpwd
ports:
- "8083:8080"
depends_on:
pgvector:
condition: service_started
networks:
- network
networks:
network:
name: docker-compose_gonggong-ai-network
external: true