ocdownloader icon indicating copy to clipboard operation
ocdownloader copied to clipboard

docker installation instructions?

Open carcinocron opened this issue 2 years ago • 4 comments

I installed via the docker method: https://hub.docker.com/_/nextcloud based on the apache docker-compose.yaml

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb:10.5.11
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_PASSWORD=
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - nextcloud:/var/www/html
    environment:
      - MYSQL_PASSWORD=
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

which is generally running well, but I'm not sure how or where the installation of youtube-dl and aria2c will fit into this.

Screen Shot 2021-08-19 at 12 05 31 PM

[Edit] CURL mode is working fine for my usecase, but a docs update would still be cool.

carcinocron avatar Aug 19 '21 16:08 carcinocron

Facing the same issue with official nextcloud docker.

ianhu92 avatar Sep 20 '21 01:09 ianhu92

youtube-dl requires Python to work. I checked that some moments ago: Python is not installed in the official images.

There won't be enough time maintaining a set of Nextcloud images with Python installed additionally. Python could be installed into a running container. The drawback of this is that is has to be done again every time the container has been removed or updated.

The same applies to ARIA2 more or less. Maybe there should be a section about this in the README.

weeman1337 avatar Dec 05 '21 11:12 weeman1337

All you need is a custom Dockerfile, like here, but replacing procps smbclient with youtube-dl. Remember to change image: nextcloud to build: . in your docker-compose.yml though!

n3oney avatar Apr 11 '22 13:04 n3oney

If you want any help you can ask me for further directions. I have ocDownloader fully working in Docker with docker-compose, with yt-dlp instead of youtube-dl for faster downloads and everything overall working.

n3oney avatar Apr 11 '22 23:04 n3oney