Für die API-Tests wird eine andere Datenbank-Verbindung benötigt. Sonst werden die vorhandenen Daten verändert.

This commit is contained in:
2021-04-06 16:52:51 +02:00
parent 09ffadc596
commit ac99e079ee
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -3,6 +3,6 @@ modules:
enabled:
- \Helper\Api
- REST:
url: http://localhost:8090/
url: http://localhost:8091/
depends: PhpBrowser
part: Json
+13
View File
@@ -11,3 +11,16 @@ services:
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