You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.5 KiB

  1. version: '3'
  2. networks:
  3. nginx-proxy:
  4. external: true
  5. backend-nextcloud:
  6. external: true
  7. services:
  8. db:
  9. image: mariadb:10.5.3
  10. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  11. restart: always
  12. volumes:
  13. - /opt/docker/nextcloud/mariadb:/var/lib/mysql
  14. env_file:
  15. - db.env
  16. container_name: nextcloud-db
  17. networks:
  18. - backend-nextcloud
  19. redis:
  20. image: redis:6.0-alpine
  21. container_name: nextcloud-redis
  22. networks:
  23. - backend-nextcloud
  24. restart: always
  25. app:
  26. image: nextcloud:19.0.7-fpm-alpine
  27. restart: always
  28. volumes:
  29. - /opt/docker/nextcloud/app:/var/www/html
  30. - /mnt/storage-box/data-nextcloud:/var/www/html/data
  31. environment:
  32. - MYSQL_HOST=db
  33. - REDIS_HOST=redis
  34. env_file:
  35. - db.env
  36. networks:
  37. - backend-nextcloud
  38. depends_on:
  39. - db
  40. - redis
  41. container_name: nextcloud
  42. web:
  43. image: nginx:1.19-alpine
  44. restart: always
  45. volumes:
  46. - /opt/docker/nextcloud/app:/var/www/html:ro
  47. - ./nginx.conf:/etc/nginx/nginx.conf:ro
  48. depends_on:
  49. - app
  50. networks:
  51. - nginx-proxy
  52. - backend-nextcloud
  53. container_name: nextcloud-nginx
  54. cron:
  55. image: nextcloud:19.0.7-fpm-alpine
  56. restart: always
  57. volumes:
  58. - /opt/docker/nextcloud/app:/var/www/html
  59. - /mnt/storage-box/data-nextcloud:/var/www/html/data
  60. entrypoint: /cron.sh
  61. depends_on:
  62. - db
  63. - redis
  64. container_name: nextcloud-cron
  65. networks:
  66. - backend-nextcloud