my compose.yml
volumes_from:
- appdata
env_file:
- ./docker/global.env
- ./docker/config.env
- ./docker/composer.env
web:
image: shiftedreality/cloud-docker-nginx:1.9
ports:
- "8080:80"
links:
And my .travis.yml
:
dist: focal
git:
depth: 1
services:
- docker
language: generic
When I try to run file_get_contents('http://web')
from cli
container, throws an error
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known to the container.
this works locally