postgres host
This commit is contained in:
parent
d9e08021e8
commit
4af59ed652
@ -26,7 +26,7 @@ volumes:
|
|||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: database
|
- name: postgres
|
||||||
image: postgres:17.2-alpine
|
image: postgres:17.2-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
|
@ -29,7 +29,7 @@ config :tradex, Tradex.Mailer, adapter: Swoosh.Adapters.Test
|
|||||||
config :tradex, Tradex.Repo,
|
config :tradex, Tradex.Repo,
|
||||||
username: "postgres",
|
username: "postgres",
|
||||||
password: "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")}",
|
database: "tradex_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
# We don't run a server during test. If one is required,
|
# We don't run a server during test. If one is required,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user