Skip to content

Commit 9b4a993

Browse files
committed
build: add postgres docker service
1 parent 56be2d9 commit 9b4a993

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

rust/docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '3.8'
2+
services:
3+
postgres:
4+
image: postgres:15
5+
environment:
6+
POSTGRES_DB: postgres
7+
POSTGRES_USER: postgres
8+
POSTGRES_PASSWORD: postgres
9+
volumes:
10+
- postgres-data:/var/lib/postgresql/data
11+
- ./impls/src/postgres/sql/v0_create_vss_db.sql:/docker-entrypoint-initdb.d/init.sql
12+
ports:
13+
- "5432:5432"
14+
networks:
15+
- app-network
16+
17+
volumes:
18+
postgres-data:
19+
20+
networks:
21+
app-network:
22+
driver: bridge

0 commit comments

Comments
 (0)