docker-compose.yml 981 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: "3"
  2. networks:
  3. proxytanet:
  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=peertube.${CHATONS_DOMAIN:-local}
  13. labels:
  14. traefik.enable: "true"
  15. traefik.frontend.rule: "Host: peertube.${CHATONS_DOMAIN:-local}, www.peertube.${CHATONS_DOMAIN:-local}"
  16. traefik.docker.network: "proxytanet"
  17. networks:
  18. - proxytanet
  19. - default
  20. volumes:
  21. - ${CHATONS_ROOT_DIR:-/srv/chatons}/peertube/data:/data
  22. - ${CHATONS_ROOT_DIR:-/srv/chatons}/peertube/config:/config
  23. db:
  24. image: postgres:10-alpine
  25. restart: unless-stopped
  26. env_file:
  27. - .env
  28. volumes:
  29. - ${CHATONS_ROOT_DIR:-/srv/chatons}/peertube/postgres:/var/lib/postgresql/data
  30. redis:
  31. image: redis:4-alpine
  32. restart: unless-stopped
  33. volumes:
  34. - ${CHATONS_ROOT_DIR:-/srv/chatons}/peertube/redis:/data