Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.78 KB | None | 0 0
  1. version: "3.8"
  2. services:
  3.   nextcloud:
  4.     image: nextcloud:25-apache
  5.     container_name: nextcloud
  6.     environment:
  7.      - MYSQL_HOST=mariadb
  8.       - REDIS_HOST=redis
  9.     restart: always
  10.     volumes:
  11.      - "/data/nextcloud-technical/nextcloud/my-nextcloud.ini:/usr/local/etc/php/conf.d/nextcloud.ini" # this increases the php memory limit ans max upload size
  12.       - "/data/nextcloud-technical/nextcloud:/var/www/html"
  13.       - "/data/nextcloud-data:/data"
  14.     links:
  15.      - mariadb
  16.     depends_on:
  17.      - mariadb
  18.       - redis
  19.     ports:
  20.      - "127.0.0.1:8080:80"
  21.     networks:
  22.       internal:
  23.         ipv4_address: 172.16.24.100
  24.  
  25.   mariadb:
  26.     image: mariadb:10.9
  27.     container_name: nextcloud-mariadb
  28.     command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  29.     environment:
  30.       MARIADB_ROOT_PASSWORD: "..."
  31.       MARIADB_DATABASE: "nextcloud"
  32.       MARIADB_AUTO_UPGRADE: "true"
  33.     restart: always
  34.     volumes:
  35.      - "/data/nextcloud-technical/mariadb/docker-entrypoint.d:/docker-entrypoint-initdb.d"
  36.       - "/data/nextcloud-technical/mariadb/db:/var/lib/mysql"
  37.     networks:
  38.       internal:
  39.         ipv4_address: 172.16.24.101
  40.  
  41.   cron:
  42.     image: nextcloud:25-apache
  43.     container_name: nextcloud-cron
  44.     volumes:
  45.      - "/data/nextcloud-technical/nextcloud:/var/www/html"
  46.       - "/data/nextcloud-data:/data"
  47.     depends_on:
  48.      - nextcloud
  49.       - mariadb
  50.       - redis
  51.     networks:
  52.       internal:
  53.         ipv4_address: 172.16.24.102
  54.     entrypoint: /cron.sh
  55.  
  56.   redis:
  57.     image: redis:7.0
  58.     container_name: nextcloud-redis
  59.     restart: always
  60.     networks:
  61.       internal:
  62.         ipv4_address: 172.16.24.103
  63.  
  64. networks:
  65.   internal:
  66.     ipam:
  67.       driver: default
  68.       config:
  69.         - subnet: '172.16.24.0/24'
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement