parent
c5dcdab330
commit
08d70fe606
|
@ -39,8 +39,8 @@ RUN yarn install --pure-lockfile \
|
||||||
# Expose PeerTube sources as a volume
|
# Expose PeerTube sources as a volume
|
||||||
VOLUME /home/user/PeerTube
|
VOLUME /home/user/PeerTube
|
||||||
|
|
||||||
# Expose API and frontend
|
# Expose frontend, API and RTMP
|
||||||
EXPOSE 3000 9000
|
EXPOSE 3000 9000 1935
|
||||||
|
|
||||||
# Start PostgreSQL and Redis
|
# Start PostgreSQL and Redis
|
||||||
CMD ["service postgresql start && redis-server"]
|
CMD ["service postgresql start && redis-server"]
|
||||||
|
|
|
@ -29,4 +29,5 @@ RUN sudo service postgresql start \
|
||||||
COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf
|
COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf
|
||||||
RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.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
|
||||||
|
|
|
@ -41,6 +41,8 @@ VOLUME /config
|
||||||
COPY ./support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY ./support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
|
|
||||||
|
# Expose API and RTMP
|
||||||
|
EXPOSE 9000 1935
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
EXPOSE 9000
|
|
||||||
|
|
Loading…
Reference in New Issue