Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 15c7478c rédigé par Eugen Rochko's avatar Eugen Rochko Validation de GitHub
Parcourir les fichiers

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

parent 84e98847
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -112,6 +112,7 @@ ENV NODE_ENV="production" ...@@ -112,6 +112,7 @@ ENV NODE_ENV="production"
# Tell rails to serve static files # Tell rails to serve static files
ENV RAILS_SERVE_STATIC_FILES="true" ENV RAILS_SERVE_STATIC_FILES="true"
ENV BIND="0.0.0.0"
# Set the run user # Set the run user
USER mastodon USER mastodon
......
...@@ -38,7 +38,7 @@ services: ...@@ -38,7 +38,7 @@ services:
image: tootsuite/mastodon image: tootsuite/mastodon
restart: always restart: always
env_file: .env.production 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: networks:
- external_network - external_network
- internal_network - internal_network
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
image: tootsuite/mastodon image: tootsuite/mastodon
restart: always restart: always
env_file: .env.production env_file: .env.production
command: BIND=0.0.0.0 node ./streaming command: node ./streaming
networks: networks:
- external_network - external_network
- internal_network - internal_network
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter