Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php service should have depends_on web service #13

Open
LongLiveCHIEF opened this issue May 18, 2019 · 1 comment
Open

php service should have depends_on web service #13

LongLiveCHIEF opened this issue May 18, 2019 · 1 comment

Comments

@LongLiveCHIEF
Copy link

If the web service is started before the php service, You'll get an nginx error:

[emerg] 1:1: host not found in upstream "php" in /etc/nginx/conf.d/default.conf:12

Amending the config for web like so will correct this problem:

web:
  # ... other configs
  depends_on:
    - php
@jimmyyem
Copy link

Thanks a lot, this option helped me.
Nginx cannot parse php file and send the php file to user browser with the following options.

depends_on: 
 - php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants