You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the results you received: services.foo.ports.0.published must be a integer
Describe the results you expected:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
Additional information you deem important (e.g. issue happens only occasionally):
With a short syntax of ports directive it works perfect:
Thanks for reporting, and the reproduction steps! This is a duplicate of docker/cli#229, and was resolved by docker/cli#601, which is part of Docker 17.11 and up.
I'll close this issue because it's been addressed, but feel free to continue the conversation, or if you're still able to reproduce on Docker 17.11 or up
OUT (NGINX_PORT=443 docker-compose -f docker-compose.yml -f docker-compose.prod.yml config > scripts/private/docker-compose.stack.yml):
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.nginx.ports.published contains "443", which is an invalid type, it should be an integer
Description
environment variable doesn't set when uses the long form syntax of ports directive in a Compose file.
Steps to reproduce the issue:
Describe the results you received:
services.foo.ports.0.published must be a integer
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
With a short syntax of ports directive it works perfect:
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: