aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-11-21 17:32:42 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-11-21 17:32:56 +0100
commit08d70fe60672976416b92fbb927898125166bfe7 (patch)
treef6201169666c456069f4bc2fa995f9a8ab5742b0 /support/docker
parentc5dcdab330b1767c0ce25d788ed51119f74e7e71 (diff)
downloadPeerTube-08d70fe60672976416b92fbb927898125166bfe7.tar.gz
PeerTube-08d70fe60672976416b92fbb927898125166bfe7.tar.zst
PeerTube-08d70fe60672976416b92fbb927898125166bfe7.zip
export rtmp port in dockerfiles
follows #3341
Diffstat (limited to 'support/docker')
-rw-r--r--support/docker/dev/Dockerfile4
-rw-r--r--support/docker/janitor/Dockerfile3
-rw-r--r--support/docker/production/Dockerfile.buster4
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 \
39# Expose PeerTube sources as a volume 39# Expose PeerTube sources as a volume
40VOLUME /home/user/PeerTube 40VOLUME /home/user/PeerTube
41 41
42# Expose API and frontend 42# Expose frontend, API and RTMP
43EXPOSE 3000 9000 43EXPOSE 3000 9000 1935
44 44
45# Start PostgreSQL and Redis 45# Start PostgreSQL and Redis
46CMD ["service postgresql start && redis-server"] 46CMD ["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 \
29COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf 29COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf
30RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf 30RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
31 31
32EXPOSE 3000 9000 32# Expose frontend, API and RTMP
33EXPOSE 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
41COPY ./support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh 41COPY ./support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh
42ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] 42ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
43 43
44# Expose API and RTMP
45EXPOSE 9000 1935
46
44# Run the application 47# Run the application
45CMD ["npm", "start"] 48CMD ["npm", "start"]
46EXPOSE 9000