docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. version: "3"
  2. networks:
  3. web:
  4. external: true
  5. services:
  6. app:
  7. image: chocobozzz/peertube:production-stretch
  8. restart: unless-stopped
  9. env_file:
  10. - .env
  11. environment:
  12. - PEERTUBE_WEBSERVER_HOSTNAME=${CHATONS_SERVICE:-peertube}.${CHATONS_DOMAIN:-localhost}
  13. - PEERTUBE_WEBSERVER_PORT=80
  14. - PEERTUBE_WEBSERVER_HTTPS=false
  15. - PEERTUBE_DB_HOSTNAME=db
  16. - PEERTUBE_DB_USERNAME=postgres_user
  17. - PEERTUBE_REDIS_HOSTNAME=redis
  18. labels:
  19. traefik.enable: "true"
  20. traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-peertube}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-peertube}.${CHATONS_DOMAIN:-localhost}"
  21. networks:
  22. - web
  23. - default
  24. volumes:
  25. - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-peertube}/data:/data
  26. - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-peertube}/config:/config
  27. db:
  28. image: postgres:10-alpine
  29. restart: unless-stopped
  30. environment:
  31. - POSTGRES_USER=postgres_user
  32. - POSTGRES_DB=peertube
  33. env_file:
  34. - .env
  35. volumes:
  36. - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-peertube}/postgres:/var/lib/postgresql/data
  37. redis:
  38. image: redis:4-alpine
  39. restart: unless-stopped
  40. volumes:
  41. - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-peertube}/redis:/data