Skip to content

Commit

Permalink
Docker: explicitly run rackup, binding to all interfaces
Browse files Browse the repository at this point in the history
With just `rackup` Rack would listen on localhost, which
is not how it should be running in Docker.
  • Loading branch information
drdaeman committed Mar 13, 2018
1 parent aff47c0 commit e29e4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -11,4 +11,4 @@ RUN mkdir /etc/pg_web_stats \
&& ln -sf /etc/pg_web_stats/config.yml /pg_web_stats/config.yml

EXPOSE 9292
CMD ["rake", "server"]
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "--port", "9292"]

0 comments on commit e29e4fc

Please sign in to comment.