File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 2121version : " 3.2"
2222
2323services :
24+ database :
25+ image : registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid-postgres:nightly
26+ environment :
27+ POSTGRES_USER : bgd
28+ POSTGRES_PASSWORD : insecure
29+ POSTGRES_DB : bgd
30+ volumes :
31+ - type : volume
32+ source : db
33+ target : /var/lib/postgresql
34+ networks :
35+ - grid
36+ ports :
37+ - " 5432:5432"
38+ healthcheck :
39+ test : ["CMD", "pg_isready", "-U", "bgd"]
40+ interval : 1s
41+ timeout : 5s
42+ retries : 10
43+
2444 controller :
2545 image : registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
2646 command : [
@@ -30,6 +50,9 @@ services:
3050 - 50051:50051
3151 networks :
3252 - grid
53+ depends_on :
54+ database :
55+ condition : service_healthy
3356
3457 bot :
3558 image : registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildbox:nightly
@@ -51,3 +74,4 @@ networks:
5174
5275volumes :
5376 cache :
77+ db :
You can’t perform that action at this time.
0 commit comments