We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71506ab commit e9df9b6Copy full SHA for e9df9b6
1 file changed
rust/docker-compose.yml
@@ -1,4 +1,19 @@
1
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
+
17
postgres:
18
image: postgres:15
19
environment:
@@ -9,6 +24,11 @@ services:
24
- postgres-data:/var/lib/postgresql/data
25
ports:
26
- "5432:5432"
27
+ healthcheck:
28
+ test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
29
+ interval: 5s
30
+ timeout: 5s
31
+ retries: 5
32
networks:
33
- app-network
34
0 commit comments