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

Этот коммит содержится в:
Eugen Rochko 2019-07-18 20:28:05 +02:00
родитель 8c445c80b5
Коммит 28f3b13c63
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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

Просмотреть файл

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