💚(ci) call the Dimail container by its actual name (and port)

So that E2E tests in Github Actions can connect to Dimail container.
Previously we were attempting to connect as if from the outside. But
the E2E process is in fact inside the Docker Compose network.
("The tests came from inside the house !")
https://tvtropes.org/pmwiki/pmwiki.php/Main/TheCallsAreComingFromInsideTheHouse
This commit is contained in:
Laurent Bossavit
2024-11-13 15:20:02 +01:00
committed by Marie
parent 33e05f7a2d
commit a10f65a51f
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ from mailbox_manager.models import MailDomain
User = get_user_model()
DIMAIL_URL = "http://host.docker.internal:8001"
DIMAIL_URL = "http://dimail:8000"
admin = {"username": "admin", "password": "admin"}
regie = {"username": "la_regie", "password": "password"}

View File

@@ -432,7 +432,7 @@ class Base(Configuration):
environ_prefix=None,
)
MAIL_PROVISIONING_API_URL = values.Value(
default="http://host.docker.internal:8001",
default="http://dimail:8000",
environ_name="MAIL_PROVISIONING_API_URL",
environ_prefix=None,
)

View File

@@ -52,7 +52,7 @@ backend:
POSTGRES_PASSWORD: pass
REDIS_URL: redis://default:pass@redis-master:6379/1
WEBMAIL_URL: "https://onestendev.yapasdewebmail.fr"
MAIL_PROVISIONING_API_URL: "http://host.docker.internal:8001"
MAIL_PROVISIONING_API_URL: "http://dimail:8000"
MAIL_PROVISIONING_API_CREDENTIALS:
secretKeyRef:
name: backend