Skip to content

Commit f036d6d

Browse files
committed
Add comment with workaround PostgreSQL crash with pgvector v0.6.1 on ARM64
1 parent e6a9a3f commit f036d6d

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

docker-compose.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
services:
22
db:
3-
build:
4-
context: ./db
5-
dockerfile: Dockerfile
6-
volumes:
7-
- postgres_data:/var/lib/postgresql/data/
8-
environment:
9-
- POSTGRES_USER=balancer
10-
- POSTGRES_PASSWORD=balancer
11-
- POSTGRES_DB=balancer_dev
12-
ports:
3+
# Workaround for PostgreSQL crash with pgvector v0.6.1 on ARM64
4+
# image: pgvector/pgvector:pg15
5+
# volumes:
6+
# - postgres_data:/var/lib/postgresql/data/
7+
# - ./db/init-vector-extension.sql:/docker-entrypoint-initdb.d/init-vector-extension.sql
8+
build:
9+
context: ./db
10+
dockerfile: Dockerfile
11+
volumes:
12+
- postgres_data:/var/lib/postgresql/data/
13+
environment:
14+
- POSTGRES_USER=balancer
15+
- POSTGRES_PASSWORD=balancer
16+
- POSTGRES_DB=balancer_dev
17+
ports:
1318
- "5433:5432"
14-
networks:
15-
app_net:
16-
ipv4_address: 192.168.0.2
19+
networks:
20+
app_net:
21+
ipv4_address: 192.168.0.2
1722
pgadmin:
1823
container_name: pgadmin4
1924
image: dpage/pgadmin4
@@ -52,13 +57,13 @@ services:
5257
args:
5358
- IMAGE_NAME=balancer-frontend
5459
ports:
55-
- "3000:3000"
60+
- "3000:3000"
5661
environment:
57-
- CHOKIDAR_USEPOLLING=true
58-
# - VITE_API_BASE_URL=https://balancertestsite.com/
62+
- CHOKIDAR_USEPOLLING=true
63+
# - VITE_API_BASE_URL=https://balancertestsite.com/
5964
volumes:
60-
- "./frontend:/usr/src/app:delegated"
61-
- "/usr/src/app/node_modules/"
65+
- "./frontend:/usr/src/app:delegated"
66+
- "/usr/src/app/node_modules/"
6267
depends_on:
6368
- backend
6469
networks:
@@ -72,4 +77,4 @@ networks:
7277
driver: default
7378
config:
7479
- subnet: "192.168.0.0/24"
75-
gateway: 192.168.0.1
80+
gateway: 192.168.0.1

0 commit comments

Comments
 (0)