Skip to content

Commit

Permalink
use same postgre image for running locally and running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed May 24, 2024
1 parent 6bce0d3 commit eceaf85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static void RegisterPostgreSqlContainer(this IServiceCollection services)
services.AddTransient<IPooledObjectPolicy<IDatabase>, PostgreSqlDatabasePoolPolicy>();

var container = new PostgreSqlBuilder()
.WithImage("postgres:16.3-alpine")
.WithReuse(true)
.Build();
container.StartAsync().RunSynchronouslyWithoutSynchronizationContext();
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
postgres:
image: postgres:15.1
image: postgres:16.3-alpine
container_name: "postgres"
environment:
- POSTGRES_USER=postgres
Expand Down

0 comments on commit eceaf85

Please sign in to comment.