php - Error writing dockerrun.aws.json v2 file -


i using file deploy multicontainer nginx php-fpm application in aws.

i run eb local run , shows me error.

holdbusinessnginx_1 | nginx: [emerg] host not found in upstream "php:9000" in /etc/nginx/conf.d/upstream.conf:1 elasticbeanstalk_holdbusinessnginx_1 exited code 1

it because nginx running before php-fpm.

in docker-compose.yml file there directive called depends-on.

is there way use in dockerrun.aws.json file?

just use directive of

  "links": [     "php"   ], 

where php name of other container defined in same dockerrun.aws.json file. eb kinda guessing dependencies on links, volumes etc. forcing nginx container link php you're saying eb php should before nignx. in shortcut. :-)


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -