Skip to content

Commit c90e95e

Browse files
committed
Update Docker Compose configuration for PostgreSQL and frontend services
1 parent 67e06b5 commit c90e95e

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

docker-compose.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
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+
image: pgvector/pgvector:pg15
4+
volumes:
5+
- postgres_data:/var/lib/postgresql/data/
6+
- ./init-vector-extension.sql:/docker-entrypoint-initdb.d/init-vector-extension.sql
7+
environment:
8+
- POSTGRES_USER=balancer
9+
- POSTGRES_PASSWORD=balancer
10+
- POSTGRES_DB=balancer_dev
11+
ports:
1312
- "5433:5432"
14-
networks:
15-
app_net:
16-
ipv4_address: 192.168.0.2
13+
networks:
14+
app_net:
15+
ipv4_address: 192.168.0.2
1716
pgadmin:
1817
container_name: pgadmin4
1918
image: dpage/pgadmin4
@@ -52,13 +51,13 @@ services:
5251
args:
5352
- IMAGE_NAME=balancer-frontend
5453
ports:
55-
- "3000:3000"
54+
- "3000:3000"
5655
environment:
57-
- CHOKIDAR_USEPOLLING=true
58-
# - VITE_API_BASE_URL=https://balancertestsite.com/
56+
- CHOKIDAR_USEPOLLING=true
57+
# - VITE_API_BASE_URL=https://balancertestsite.com/
5958
volumes:
60-
- "./frontend:/usr/src/app:delegated"
61-
- "/usr/src/app/node_modules/"
59+
- "./frontend:/usr/src/app:delegated"
60+
- "/usr/src/app/node_modules/"
6261
depends_on:
6362
- backend
6463
networks:
@@ -72,4 +71,4 @@ networks:
7271
driver: default
7372
config:
7473
- subnet: "192.168.0.0/24"
75-
gateway: 192.168.0.1
74+
gateway: 192.168.0.1

0 commit comments

Comments
 (0)