Advertisement
Guest User

Untitled

a guest
Oct 24th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. services:
  2.  
  3. # You can comment this webserver section if you want to use another webserver/proxy or test PeerTube in local
  4. # webserver:
  5. # image: chocobozzz/peertube-webserver:latest
  6. # If you don't want to use the official image and build one from sources:
  7. # build:
  8. # context: .
  9. # dockerfile: Dockerfile.nginx
  10. # env_file:
  11. # - .env
  12. #ports:
  13. # - "80:80"
  14. # volumes:
  15. # - type: bind
  16. # Switch sources if you downloaded the whole repository
  17. #source: ../../nginx/peertube
  18. # source: /mnt/hdd/peertube/docker-volume/nginx/peertube
  19. # target: /etc/nginx/conf.d/peertube.template
  20. # - assets:/var/www/peertube/peertube-latest/client/dist:ro
  21. # - /mnt/hdd/peertube/docker-volume/data:/var/www/peertube/storage
  22. # depends_on:
  23. # - peertube
  24. # restart: "always"
  25.  
  26. # You can comment this certbot section if you want to use another webserver/proxy or test PeerTube in local
  27. # certbot:
  28. # container_name: certbot
  29. # image: certbot/certbot
  30. #volumes:
  31. # - ./docker-volume/certbot/conf:/etc/letsencrypt
  32. # - certbot-www:/var/www/certbot
  33. # restart: unless-stopped
  34. # entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot -w /var/www/certbot; sleep 12h & wait $${!}; done;"
  35. # depends_on:
  36. # - webserver
  37.  
  38. peertube:
  39. # If you don't want to use the official image and build one from sources:
  40. # build:
  41. # context: .
  42. # dockerfile: ./support/docker/production/Dockerfile.bookworm
  43. image: chocobozzz/peertube:production-bookworm
  44. # Use a static IP for this container because nginx does not handle proxy host change without reload
  45. # This container could be restarted on crash or until the postgresql database is ready for connection
  46. networks:
  47. default:
  48. ipv4_address: 172.18.0.42
  49. ipv6_address: fdab:e4b3:21a2:ef1b:0000:0000:0000:0123
  50. env_file:
  51. - .env
  52.  
  53. ports:
  54. - "1935:1935" # Comment if you don't want to use the live feature
  55. - "9009:9000" # Uncomment if you use another webserver/proxy or test PeerTube in local, otherwise not suitable for production
  56. volumes:
  57. # Remove the following line if you want to use another webserver/proxy or test PeerTube in local
  58. # - assets:/app/client/dist
  59. - /mnt/hdd/peertube/docker-volume/data:/data
  60. - /mnt/hdd/peertube/docker-volume/config:/config
  61. depends_on:
  62. - postgres
  63. - redis
  64. restart: "always"
  65.  
  66. postgres:
  67. image: postgres:13-alpine
  68. env_file:
  69. - .env
  70. volumes:
  71. - /mnt/hdd/peertube/docker-volume/db:/var/lib/postgresql/data
  72. restart: "always"
  73.  
  74. redis:
  75. image: redis:6-alpine
  76. volumes:
  77. - /mnt/hdd/peertube/docker-volume/redis:/data
  78. restart: "always"
  79.  
  80.  
  81. networks:
  82. default:
  83. enable_ipv6: true
  84. ipam:
  85. driver: default
  86. config:
  87. - subnet: 172.18.0.0/16
  88. - subnet: fdab:e4b3:21a2:ef1b::/64
  89. volumes:
  90. assets:
  91. certbot-www:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement