From ac99e079eef0c8071268b2983d934c5ffa2a3303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Tue, 6 Apr 2021 16:52:51 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=BCr=20die=20API-Tests=20wird=20eine=20ande?= =?UTF-8?q?re=20Datenbank-Verbindung=20ben=C3=B6tigt.=20Sonst=20werden=20d?= =?UTF-8?q?ie=20vorhandenen=20Daten=20ver=C3=A4ndert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/api.suite.dist.yml | 2 +- compose.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/tests/api.suite.dist.yml b/api/tests/api.suite.dist.yml index e210873..3c4624f 100644 --- a/api/tests/api.suite.dist.yml +++ b/api/tests/api.suite.dist.yml @@ -3,6 +3,6 @@ modules: enabled: - \Helper\Api - REST: - url: http://localhost:8090/ + url: http://localhost:8091/ depends: PhpBrowser part: Json \ No newline at end of file diff --git a/compose.yml b/compose.yml index d3ba3ba..885d3cc 100644 --- a/compose.yml +++ b/compose.yml @@ -8,6 +8,19 @@ services: docker: "true" ports: - 8090:80 + volumes: + - ./api:/var/www + - logs:/var/www/logs + test-api: + build: ./api/ + environment: + docker: "true" + DATABASES_HOST: psql.torsten-hettstedt.net + DATABASES_NAME: testdb + DATABASES_USER: bruce + DATABASES_PASS: mypass + ports: + - 8091:80 volumes: - ./api:/var/www - logs:/var/www/logs \ No newline at end of file