postgres host
This commit is contained in:
		| @@ -26,7 +26,7 @@ volumes: | ||||
|   temp: {} | ||||
|  | ||||
| services: | ||||
| - name: database | ||||
| - name: postgres | ||||
|   image: postgres:17.2-alpine | ||||
|   environment: | ||||
|     POSTGRES_USER: postgres | ||||
|   | ||||
| @@ -29,7 +29,7 @@ config :tradex, Tradex.Mailer, adapter: Swoosh.Adapters.Test | ||||
| config :tradex, Tradex.Repo, | ||||
|   username: "postgres", | ||||
|   password: "postgres", | ||||
|   hostname: "localhost", | ||||
|   hostname: if(System.get_env("CI") == "true", do: "postgres", else: "localhost"), | ||||
|   database: "tradex_test#{System.get_env("MIX_TEST_PARTITION")}", | ||||
|   pool: Ecto.Adapters.SQL.Sandbox, | ||||
|   # We don't run a server during test. If one is required, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user