docker-compose.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. version: '2'
  2. services:
  3. nextcloud:
  4. image: nexus.sebastianfisahn.com/nextcloud:17.0.1
  5. environment:
  6. APC_SHM_SIZE: 256M
  7. CRON_PERIOD: 15m
  8. DB_HOST: nextcloud-db
  9. DB_NAME: nextcloud
  10. DB_PASSWORD: qT2QyZGcJ6KPfnph
  11. DB_TYPE: mysql
  12. DB_USER: nextcloud
  13. DOMAIN: localhost
  14. GID: '1000'
  15. OPCACHE_MEM_SIZE: '256'
  16. TZ: Europe/Berlin
  17. UID: '1000'
  18. UPLOAD_MAX_SIZE: 10G
  19. REDIS_HOST: redis
  20. REDIS_HOST_PORT: '6379'
  21. volumes:
  22. - /mnt/volume-data/nextcloud/data:/data
  23. - /mnt/volume-data/nextcloud/config:/config
  24. - /mnt/volume-data/nextcloud/apps:/apps2
  25. - /mnt/volume-data/nextcloud/themes:/nextcloud/themes
  26. - /mnt/volume-data/nextcloud/php-sessions:/php/session
  27. domainname: nextcloud.sebastianfisahn.com
  28. links:
  29. - nextcloud-db:nextcloud-db
  30. ports:
  31. - 8888:8888/tcp
  32. labels:
  33. io.rancher.container.pull_image: always
  34. wonderfall: nextcloud
  35. nextcloud-db:
  36. mem_limit: 262144000
  37. image: mariadb:10
  38. environment:
  39. MYSQL_DATABASE: nextcloud
  40. MYSQL_PASSWORD: qT2QyZGcJ6KPfnph
  41. MYSQL_ROOT_PASSWORD: qT2QyZGcJ6KPfnph
  42. MYSQL_USER: nextcloud
  43. volumes:
  44. - /mnt/volume-data/nextcloud/db:/var/lib/mysql
  45. labels:
  46. io.rancher.container.pull_image: always
  47. redis:
  48. image: redis:alpine
  49. stdin_open: true
  50. volumes:
  51. - /mnt/volume-data/nextcloud/redis:/data
  52. tty: true
  53. labels:
  54. io.rancher.container.pull_image: always