Browse Source

Change Dockerfile to bind to 0.0.0.0 instead of docker-compose.yml (#11351)

pull/4/head
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
15c7478c55
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      Dockerfile
  2. +2
    -2
      docker-compose.yml

+ 1
- 0
Dockerfile View File

@ -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

+ 2
- 2
docker-compose.yml View File

@ -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
@ -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

Loading…
Cancel
Save