Browse Source

export rtmp port in dockerfiles

follows #3341
pull/3342/head
Rigel Kent 1 week ago
parent
commit
08d70fe606
No known key found for this signature in database GPG Key ID: 5E53E96A494E452F
3 changed files with 7 additions and 4 deletions
  1. +2
    -2
      support/docker/dev/Dockerfile
  2. +2
    -1
      support/docker/janitor/Dockerfile
  3. +3
    -1
      support/docker/production/Dockerfile.buster

+ 2
- 2
support/docker/dev/Dockerfile View File

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

+ 2
- 1
support/docker/janitor/Dockerfile View File

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

+ 3
- 1
support/docker/production/Dockerfile.buster View File

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

Loading…
Cancel
Save