{"action":"created","issue":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/552","repository_url":"https://api.github.com/repos/jwilder/nginx-proxy","labels_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/552/comments","events_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/552/events","html_url":"https://github.com/jwilder/nginx-proxy/issues/552","id":174005686,"number":552,"title":"Recommended configuration w/ docker-compose","user":{"login":"corradio","id":1655848,"avatar_url":"https://avatars.githubusercontent.com/u/1655848?v=3","gravatar_id":"","url":"https://api.github.com/users/corradio","html_url":"https://github.com/corradio","followers_url":"https://api.github.com/users/corradio/followers","following_url":"https://api.github.com/users/corradio/following{/other_user}","gists_url":"https://api.github.com/users/corradio/gists{/gist_id}","starred_url":"https://api.github.com/users/corradio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corradio/subscriptions","organizations_url":"https://api.github.com/users/corradio/orgs","repos_url":"https://api.github.com/users/corradio/repos","events_url":"https://api.github.com/users/corradio/events{/privacy}","received_events_url":"https://api.github.com/users/corradio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-30T12:27:13Z","updated_at":"2016-09-01T12:55:22Z","closed_at":null,"body":"Hi,\r\n\r\nI have several stacks (i.e. applications) running on a server based on multiple docker-compose configurations. They all, by default, run on their own bridge network.\r\nWhat is the recommended way of running the nginx-proxy? I tried to run it on the host network, but it didn't work (it creates empty `upstream` sections).\r\nThe only workaround I found for now is to have both the proxy and the different backends join the same default bridge network."},"comment":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/comments/244069750","html_url":"https://github.com/jwilder/nginx-proxy/issues/552#issuecomment-244069750","issue_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/552","id":244069750,"user":{"login":"RafaelKr","id":14234815,"avatar_url":"https://avatars.githubusercontent.com/u/14234815?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaelKr","html_url":"https://github.com/RafaelKr","followers_url":"https://api.github.com/users/RafaelKr/followers","following_url":"https://api.github.com/users/RafaelKr/following{/other_user}","gists_url":"https://api.github.com/users/RafaelKr/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaelKr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaelKr/subscriptions","organizations_url":"https://api.github.com/users/RafaelKr/orgs","repos_url":"https://api.github.com/users/RafaelKr/repos","events_url":"https://api.github.com/users/RafaelKr/events{/privacy}","received_events_url":"https://api.github.com/users/RafaelKr/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T12:55:22Z","updated_at":"2016-09-01T12:55:22Z","body":"Here I also have my configuration I'm using for WordPress:\r\n```\r\nversion: '2'\r\n\r\nservices:\r\n    db:\r\n        image: mariadb\r\n        restart: unless-stopped\r\n        environment:\r\n            MYSQL_ROOT_PASSWORD: \"change_me\"\r\n            MYSQL_DATABASE: \"change_me\"\r\n            MYSQL_USER: \"change_me\"\r\n            MYSQL_PASSWORD: \"change_me\"\r\n        networks:\r\n            - change_me_net\r\n        volumes:\r\n            - ../data/docker/db:/var/lib/mysql\r\n\r\n    wordpress:\r\n        depends_on:\r\n            - db\r\n        image: suedsolutions/wordpress\r\n        restart: unless-stopped\r\n        hostname: change_me\r\n        environment:\r\n            VIRTUAL_HOST: www.change_me.dev\r\n            WORDPRESS_DB_HOST: maria.db\r\n            WORDPRESS_DB_NAME: \"change_me\"\r\n            WORDPRESS_DB_USER: \"change_me\"\r\n            WORDPRESS_DB_PASSWORD: \"change_me\"\r\n            WORDPRESS_TABLE_PREFIX: \"change_me\"\r\n        networks:\r\n            - change_me_net\r\n            - nginx-proxy\r\n        links:\r\n            - db:maria.db\r\n        volumes:\r\n            - ../data/docker/wordpress:/var/www/html\r\n            - ./src/themes:/var/www/html/wp-content/themes:ro\r\n            - ../data/docker/logs:/var/log/apache2\r\n\r\nnetworks:\r\n    change_me_net:\r\n    nginx-proxy:\r\n        external:\r\n            name: nginxproxy_default\r\n```\r\nThere you can see, that I have one network for the apps internal communication (`change_me_net`) and for the services which should be available through a Virtual Host I also add the network `nginx-proxy`.\r\n\r\nHope this helps you and maybe some others. :)"}}
{"actor":{"display_login":"RafaelKr"}}