This repository was archived by the owner on Feb 21, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11services :
2- zero2prod :
3- build : .
4- restart : always
5- ports :
6- - " 8080:80"
7- environment :
8- APP_ENV : ${APP_ENV}
9- depends_on :
10- postgres :
11- restart : true
12- condition : service_healthy
13-
142 postgres :
153 image : postgres:17
164 restart : always
Original file line number Diff line number Diff line change 1- [service ]
2- host = " 0.0.0.0:80"
3-
41[database ]
52username = " postgres"
63password = " postgres"
4+ host = " 127.0.0.1"
75port = " 5432"
86database_name = " zero2prod"
97
Original file line number Diff line number Diff line change 1- [database ]
2- host = " postgres "
1+ [service ]
2+ host = " 127.0.0.1:8080 "
Original file line number Diff line number Diff line change 1- [database ]
2- host = " localhost "
1+ [service ]
2+ host = " 0.0.0.0:80 "
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ async fn spawn_app() -> TestApp {
3030
3131 let mut cfg = get_config ( ) . expect ( "failed to read config" ) ;
3232 cfg. database . database_name = Uuid :: now_v7 ( ) . to_string ( ) ;
33- cfg. database . host = "127.0.0.1" . to_string ( ) ;
3433
3534 let listener = TcpListener :: bind ( "127.0.0.1:0" ) . expect ( "failed to bind random port" ) ;
3635 let port = listener. local_addr ( ) . unwrap ( ) . port ( ) ;
You can’t perform that action at this time.
0 commit comments