Advertisement
Flo_R1der

Nextcloud Docker configuration

Apr 23rd, 2023
1,157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.77 KB | Software | 0 0
  1. version: '2'
  2.  
  3.  
  4. services:
  5.   db:
  6.     image: mariadb:10.5
  7.     restart: always
  8.     command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  9.     volumes:
  10.      - ./maria_db:/var/lib/mysql
  11.     environment:
  12.      - MYSQL_PASSWORD=${MYSQL_NC_PASSWORD}
  13.       - MYSQL_DATABASE=${MYSQL_NC_DATABASE}
  14.       - MYSQL_USER=${MYSQL_NC_USER}
  15.       - TIMEZONE=${TIMEZONE}
  16.  
  17.   redis:
  18.     image: redis:alpine
  19.     restart: unless-stopped
  20.     volumes:
  21.       - ./redis_data:/data
  22.     environment:
  23.      - TIMEZONE=${TIMEZONE}
  24.  
  25.   cron:
  26.     image: nextcloud-ocr:25
  27.     restart: unless-stopped
  28.     dns:
  29.       - 192.168.178.1
  30.     volumes:
  31.      #- ./crontabs:/var/spool/cron/crontabs
  32.       - ./nc_html:/var/www/html
  33.       - ./nc_apps:/var/www/html/custom_apps
  34.       - ./nc_config:/var/www/html/config
  35.       #- ./nc_data:/var/www/html/data
  36.       - /media/myNextcloudDrive/nc_data:/media/nc_data
  37.       - ./nc_logs:/var/log/nextcloud
  38.     environment:
  39.      - TIMEZONE=${TIMEZONE}
  40.     entrypoint: /cron.sh
  41.     depends_on:
  42.      - db
  43.       - redis
  44.  
  45.   app:
  46.     image: nextcloud-ocr:25
  47.     container_name: nextcloud
  48.     restart: unless-stopped
  49.     ports:
  50.      - 5002:80
  51.     dns:
  52.       - 192.168.178.1
  53.     links:
  54.      - db
  55.       - redis
  56.     volumes:
  57.      - ./nc_html:/var/www/html
  58.       - ./nc_apps:/var/www/html/custom_apps
  59.       - ./nc_config:/var/www/html/config
  60.       #- ./nc_data:/var/www/html/data
  61.       - /media/myNextcloudDrive/nc_data:/media/nc_data
  62.       - ./nc_logs:/var/log/nextcloud
  63.     environment:
  64.      - MYSQL_HOST=${MYSQL_HOST}
  65.       - MYSQL_USER=${MYSQL_NC_USER}
  66.       - MYSQL_PASSWORD=${MYSQL_NC_PASSWORD}
  67.       - MYSQL_DATABASE=${MYSQL_NC_DATABASE}
  68.       - REDIS_HOST=redis
  69.       - TIMEZONE=${TIMEZONE}
  70.     depends_on:
  71.      - db
  72.       - redis
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement