Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

Commit f5b5798

Browse files
committed
Remove application from container
1 parent c50af2b commit f5b5798

5 files changed

Lines changed: 5 additions & 20 deletions

File tree

compose.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
services:
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

configs/base.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
[service]
2-
host = "0.0.0.0:80"
3-
41
[database]
52
username = "postgres"
63
password = "postgres"
4+
host = "127.0.0.1"
75
port = "5432"
86
database_name = "zero2prod"
97

configs/local.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[database]
2-
host = "postgres"
1+
[service]
2+
host = "127.0.0.1:8080"

configs/prod.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[database]
2-
host = "localhost"
1+
[service]
2+
host = "0.0.0.0:80"

tests/healthz.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)