Skip to content

Commit f647b85

Browse files
Gargronhiyuki2578
authored andcommitted
Change Dockerfile to bind to 0.0.0.0 instead of docker-compose.yml (mastodon#11351)
1 parent 3f378e2 commit f647b85

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ ENV NODE_ENV="production"
112112

113113
# Tell rails to serve static files
114114
ENV RAILS_SERVE_STATIC_FILES="true"
115+
ENV BIND="0.0.0.0"
115116

116117
# Set the run user
117118
USER mastodon

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ services:
3838
image: tootsuite/mastodon
3939
restart: always
4040
env_file: .env.production
41-
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000 -b '0.0.0.0'"
41+
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
4242
networks:
4343
- external_network
4444
- internal_network
@@ -58,7 +58,7 @@ services:
5858
image: tootsuite/mastodon
5959
restart: always
6060
env_file: .env.production
61-
command: yarn start
61+
command: node ./streaming
6262
networks:
6363
- external_network
6464
- internal_network

0 commit comments

Comments
 (0)