From 08d70fe60672976416b92fbb927898125166bfe7 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 21 Nov 2020 17:32:42 +0100 Subject: [PATCH] export rtmp port in dockerfiles follows #3341 --- support/docker/dev/Dockerfile | 4 ++-- support/docker/janitor/Dockerfile | 3 ++- support/docker/production/Dockerfile.buster | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/support/docker/dev/Dockerfile b/support/docker/dev/Dockerfile index 991cf05e2..e41f5e1e2 100644 --- a/support/docker/dev/Dockerfile +++ b/support/docker/dev/Dockerfile @@ -39,8 +39,8 @@ RUN yarn install --pure-lockfile \ # Expose PeerTube sources as a volume VOLUME /home/user/PeerTube -# Expose API and frontend -EXPOSE 3000 9000 +# Expose frontend, API and RTMP +EXPOSE 3000 9000 1935 # Start PostgreSQL and Redis CMD ["service postgresql start && redis-server"] diff --git a/support/docker/janitor/Dockerfile b/support/docker/janitor/Dockerfile index 2b4f2b215..5e7970d17 100644 --- a/support/docker/janitor/Dockerfile +++ b/support/docker/janitor/Dockerfile @@ -29,4 +29,5 @@ RUN sudo service postgresql start \ COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf -EXPOSE 3000 9000 +# Expose frontend, API and RTMP +EXPOSE 3000 9000 1935 diff --git a/support/docker/production/Dockerfile.buster b/support/docker/production/Dockerfile.buster index 5af8aa29a..457936090 100644 --- a/support/docker/production/Dockerfile.buster +++ b/support/docker/production/Dockerfile.buster @@ -41,6 +41,8 @@ VOLUME /config COPY ./support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] +# Expose API and RTMP +EXPOSE 9000 1935 + # Run the application CMD ["npm", "start"] -EXPOSE 9000