Skip to content

Commit

Permalink
Change Dockerfile to bind to 0.0.0.0 instead of docker-compose.yml (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Jul 18, 2019
1 parent 84e9884 commit 15c7478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -112,6 +112,7 @@ ENV NODE_ENV="production"

# Tell rails to serve static files
ENV RAILS_SERVE_STATIC_FILES="true"
ENV BIND="0.0.0.0"

# Set the run user
USER mastodon
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Expand Up @@ -38,7 +38,7 @@ services:
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000 -b '0.0.0.0'"
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
networks:
- external_network
- internal_network
Expand All @@ -58,7 +58,7 @@ services:
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: BIND=0.0.0.0 node ./streaming
command: node ./streaming
networks:
- external_network
- internal_network
Expand Down

0 comments on commit 15c7478

Please sign in to comment.