Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- image: mariadb:10.5
- restart: always
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- volumes:
- - ./maria_db:/var/lib/mysql
- environment:
- - MYSQL_PASSWORD=${MYSQL_NC_PASSWORD}
- - MYSQL_DATABASE=${MYSQL_NC_DATABASE}
- - MYSQL_USER=${MYSQL_NC_USER}
- - TIMEZONE=${TIMEZONE}
- redis:
- image: redis:alpine
- restart: unless-stopped
- volumes:
- - ./redis_data:/data
- environment:
- - TIMEZONE=${TIMEZONE}
- cron:
- image: nextcloud-ocr:25
- restart: unless-stopped
- dns:
- - 192.168.178.1
- volumes:
- #- ./crontabs:/var/spool/cron/crontabs
- - ./nc_html:/var/www/html
- - ./nc_apps:/var/www/html/custom_apps
- - ./nc_config:/var/www/html/config
- #- ./nc_data:/var/www/html/data
- - /media/myNextcloudDrive/nc_data:/media/nc_data
- - ./nc_logs:/var/log/nextcloud
- environment:
- - TIMEZONE=${TIMEZONE}
- entrypoint: /cron.sh
- depends_on:
- - db
- - redis
- app:
- image: nextcloud-ocr:25
- container_name: nextcloud
- restart: unless-stopped
- ports:
- - 5002:80
- dns:
- - 192.168.178.1
- links:
- - db
- - redis
- volumes:
- - ./nc_html:/var/www/html
- - ./nc_apps:/var/www/html/custom_apps
- - ./nc_config:/var/www/html/config
- #- ./nc_data:/var/www/html/data
- - /media/myNextcloudDrive/nc_data:/media/nc_data
- - ./nc_logs:/var/log/nextcloud
- environment:
- - MYSQL_HOST=${MYSQL_HOST}
- - MYSQL_USER=${MYSQL_NC_USER}
- - MYSQL_PASSWORD=${MYSQL_NC_PASSWORD}
- - MYSQL_DATABASE=${MYSQL_NC_DATABASE}
- - REDIS_HOST=redis
- - TIMEZONE=${TIMEZONE}
- depends_on:
- - db
- - redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement