{"action":"opened","issue":{"url":"https://api.github.com/repos/beevelop/docker-nginx-basic-auth/issues/15","repository_url":"https://api.github.com/repos/beevelop/docker-nginx-basic-auth","labels_url":"https://api.github.com/repos/beevelop/docker-nginx-basic-auth/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/beevelop/docker-nginx-basic-auth/issues/15/comments","events_url":"https://api.github.com/repos/beevelop/docker-nginx-basic-auth/issues/15/events","html_url":"https://github.com/beevelop/docker-nginx-basic-auth/issues/15","id":345845487,"node_id":"MDU6SXNzdWUzNDU4NDU0ODc=","number":15,"title":"Consider documenting docker-compose.yml or docker-cloud.yml","user":{"login":"jeremydouglass","id":798570,"node_id":"MDQ6VXNlcjc5ODU3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/798570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremydouglass","html_url":"https://github.com/jeremydouglass","followers_url":"https://api.github.com/users/jeremydouglass/followers","following_url":"https://api.github.com/users/jeremydouglass/following{/other_user}","gists_url":"https://api.github.com/users/jeremydouglass/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremydouglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremydouglass/subscriptions","organizations_url":"https://api.github.com/users/jeremydouglass/orgs","repos_url":"https://api.github.com/users/jeremydouglass/repos","events_url":"https://api.github.com/users/jeremydouglass/events{/privacy}","received_events_url":"https://api.github.com/users/jeremydouglass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T16:56:29Z","updated_at":"2018-07-30T16:56:29Z","closed_at":null,"author_association":"NONE","body":"Consider documenting how your example works differently with docker-compose.yml or docker-cloud.yml.\r\n\r\nBecause the examples define HTPASSWD as an environment variable, they often pass strings with $ characters. When using Docker compose or swarm to parse the config file, this will cause the file to fail due to failed string expansion:\r\n\r\n> \"$ characters must be escaped with a second $\"\r\n\r\nSo your example \r\n\r\n    -e HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' \\\r\n\r\nWill, in the yml config, have double-$$, or it will fail:\r\n\r\n    environment:\r\n      - HTPASSWD='foo:$$apr1$$odHl5EJN$$KbxMfo86Qdve2FH4owePn.'\r\n\r\nFor related discussion, see:\r\n\r\nhttps://forums.docker.com/t/docker-swarm-with-compose-file-does-not-recognize-links/42356/4"}}
{"actor":{"display_login":"jeremydouglass"}}