Skip to content

Commit e9df9b6

Browse files
committed
Add vss-server to docker-compose.yml
1 parent 71506ab commit e9df9b6

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

rust/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
services:
2+
vss-server:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
ports:
7+
- "8080:8080"
8+
environment:
9+
VSS_BIND_ADDRESS: 0.0.0.0:8080
10+
VSS_PSQL_ADDRESS: postgres:5432
11+
depends_on:
12+
postgres:
13+
condition: service_healthy
14+
networks:
15+
- app-network
16+
217
postgres:
318
image: postgres:15
419
environment:
@@ -9,6 +24,11 @@ services:
924
- postgres-data:/var/lib/postgresql/data
1025
ports:
1126
- "5432:5432"
27+
healthcheck:
28+
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
29+
interval: 5s
30+
timeout: 5s
31+
retries: 5
1232
networks:
1333
- app-network
1434

0 commit comments

Comments
 (0)