Answer the question
In order to leave comments, you need to log in
Where can I get an API domain for testing in docker?
Hello.
I can't figure out what url I need to put in api.suite.yml to test the API.
In every case that came to my mind, I received
cURL error 7: Failed to connect to php port 8000: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
actor: ApiTester
modules:
enabled:
- REST:
url: http://php:8000
depends: PhpBrowser
- Yii2:
configFile: 'config/test-local.php'
part:
- email
- ORM
- Fixtures
- init
cleanup: true
transaction: false
recreateApplication: true
entryScript: index-test.php
version: '2'
services:
php:
image: yiisoftware/yii2-php:7.4-apache
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app:delegated
ports:
- '8000:80'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question