diff --git a/docker-compose.yaml b/docker-compose.yaml index daa4b58..33b941e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,8 +6,9 @@ services: restart: always environment: POSTGRES_HOST_AUTH_METHOD: trust - POSTGRES_USER: arak - POSTGRES_PASSWORD: 123 + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: arak command: -d postgres volumes: - postgres:/var/lib/postgresql/data diff --git a/src/database/postgres.rs b/src/database/postgres.rs index 6f89262..4396fcb 100644 --- a/src/database/postgres.rs +++ b/src/database/postgres.rs @@ -499,7 +499,7 @@ mod tests { use super::*; fn local_postgres_url() -> String { - "postgresql://arak@localhost".to_string() + "postgresql://postgres@localhost".to_string() } async fn clear_database() {