]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/docker/production/docker-compose.yml
Update translations
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-compose.yml
index 4ad1a8756ca73dfefdc8cde0b5f6ee539dea85fe..13f75f2221e8b11b688fb76f8f79eca115cf52e9 100644 (file)
@@ -2,7 +2,7 @@ version: "3.3"
 
 services:
 
-  # You can comment this webserver section if you want to use another webserver/proxy
+  # You can comment this webserver section if you want to use another webserver/proxy or test PeerTube in local
   webserver:
     image: chocobozzz/peertube-webserver:latest
     # If you don't want to use the official image and build one from sources:
@@ -28,7 +28,7 @@ services:
       - peertube
     restart: "always"
 
-  # You can comment this certbot section if you want to use another webserver/proxy
+  # You can comment this certbot section if you want to use another webserver/proxy or test PeerTube in local
   certbot:
     container_name: certbot
     image: certbot/certbot
@@ -44,13 +44,19 @@ services:
     # If you don't want to use the official image and build one from sources:
     # build:
     #   context: .
-    #   dockerfile: ./support/docker/production/Dockerfile.buster
-    image: chocobozzz/peertube:production-buster
+    #   dockerfile: ./support/docker/production/Dockerfile.bullseye
+    image: chocobozzz/peertube:production-bullseye
+    # Use a static IP for this container because nginx does not handle proxy host change without reload
+    # This container could be restarted on crash or until the postgresql database is ready for connection
+    networks:
+      default:
+        ipv4_address: 172.18.0.42
     env_file:
       - .env
-    # If you provide your own webserver and reverse-proxy, otherwise not suitable for production:
-    #ports:
-    #  - "80:9000" # serving HTTP
+
+    ports:
+     - "1935:1935" # Comment if you don't want to use the live feature
+    #  - "9000:9000" # Uncomment if you use another webserver/proxy or test PeerTube in local, otherwise not suitable for production
     volumes:
       - assets:/app/client/dist
       - ./docker-volume/data:/data