Jump to content
LAST CALL on the Unraid Summer Sale! ๐Ÿ˜Ž โŒ› ร—

Ray

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by Ray

  1. Can someone help with a docker install script for Mayan-EDMS?ย  This is such a fantastic document management system that would be so helpful for many.ย  It seems like most of the work is done and just needs a template so we can set document volumes, etc.ย  It's above my abilities but maybe someone here can do it?

    ย 

    #!/bin/sh
    set -e

    # This script is meant for quick & easy install via:
    # ย  $ curl -fsSL get.mayan-edms.com -o get-mayan-edms.sh
    # ย  $ sh get-mayan-edms.sh
    #
    # NOTE: Make sure to verify the contents of the script
    # ย  ย  ย  you downloaded matches the contents of docker.sh
    # ย  ย  ย  located at https://gitlab.com/mayan-edms/mayan-edms/blob/master/contrib/scripts/install/docker.sh
    # ย  ย  ย  before executing.

    : ${VERBOSE:=true}
    : ${INSTALL_DOCKER:=false}
    : ${DELETE_VOLUMES:=false}
    : ${DATABASE_USER:=mayan}
    : ${DATABASE_NAME:=mayan}
    : ${DATABASE_PASSWORD:=mayanuserpass}
    : ${DOCKER_POSTGRES_IMAGE:=postgres:9.5}
    : ${DOCKER_POSTGRES_CONTAINER:=mayan-edms-postgres}
    : ${DOCKER_POSTGRES_VOLUME:=/docker-volumes/mayan-edms/postgres}
    : ${DOCKER_POSTGRES_PORT:=5432}
    : ${DOCKER_MAYAN_IMAGE:=mayanedms/mayanedms:latest}
    : ${DOCKER_MAYAN_CONTAINER:=mayan-edms}
    : ${DOCKER_MAYAN_VOLUME:=/docker-volumes/mayan-edms/media}

    cat << EOF

    โ–ˆโ–ˆโ–ˆโ•— ย  โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— ย  โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— ย  โ–ˆโ–ˆโ•—
    โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— ย โ–ˆโ–ˆโ•‘
    โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘
    โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ ย โ•šโ–ˆโ–ˆโ•”โ• ย โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘
    โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ ย โ–ˆโ–ˆโ•‘ ย  โ–ˆโ–ˆโ•‘ ย  โ–ˆโ–ˆโ•‘ ย โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
    โ•šโ•โ• ย  ย  โ•šโ•โ•โ•šโ•โ• ย โ•šโ•โ• ย  โ•šโ•โ• ย  โ•šโ•โ• ย โ•šโ•โ•โ•šโ•โ• ย โ•šโ•โ•โ•โ•
    Docker deploy script

    NOTE: Make sure to verify the contents of this script
    matches the contents of docker.sh located at https://gitlab.com/mayan-edms/mayan-edms/blob/master/contrib/scripts/install/docker.sh before executing.

    EOF

    if [ "$VERBOSE" = true ]; then
    echo "Variable values to be used:"
    echo "---------------------------"
    echo "INSTALL_DOCKER: $INSTALL_DOCKER"
    echo "DELETE_VOLUMES: $DELETE_VOLUMES"
    echo "DATABASE_USER: $DATABASE_USER"
    echo "DATABASE_NAME: $DATABASE_NAME"
    echo "DATABASE_PASSWORD: $DATABASE_PASSWORD"
    echo "DOCKER_POSTGRES_IMAGE: $DOCKER_POSTGRES_IMAGE"
    echo "DOCKER_POSTGRES_CONTAINER: $DOCKER_POSTGRES_CONTAINER"
    echo "DOCKER_POSTGRES_VOLUME: $DOCKER_POSTGRES_VOLUME"
    echo "DOCKER_POSTGRES_PORT: $DOCKER_POSTGRES_PORT"
    echo "DOCKER_MAYAN_IMAGE: $DOCKER_MAYAN_IMAGE"
    echo "DOCKER_MAYAN_CONTAINER: $DOCKER_MAYAN_CONTAINER"
    echo "DOCKER_MAYAN_VOLUME: $DOCKER_MAYAN_VOLUME"
    echo "\nStarting in 10 seconds."
    sleep 10
    fi

    if [ "$INSTALL_DOCKER" = true ]; then
    ย  ย  echo -n "* Installing Docker..."
    ย  ย  curl -fsSL get.docker.com -o get-docker.sh >/dev/null
    ย  ย  sh get-docker.sh >/dev/null 2>&1
    ย  ย  rm get-docker.sh
    ย  ย  echo "Done"
    fi

    if [ -z `which docker` ย ]; then
    ย  ย  echo "Docker is not installed. Rerun this script with the variable INSTALL_DOCKER set to true."
    ย  ย  exit 1
    fi

    echo -n "* Removing existing Mayan EDMS and PostgreSQL containers (no data will be lost)..."
    true || docker stop $DOCKER_MAYAN_CONTAINER >/dev/null 2>&1
    true || docker rm $DOCKER_MAYAN_CONTAINER >/dev/null 2>&1
    true || docker stop $DOCKER_POSTGRES_CONTAINER >/dev/null 2>&1
    true || docker rm $DOCKER_POSTGRES_CONTAINER >/dev/null 2>&1
    echo "Done"

    if [ "$DELETE_VOLUMES" = true ]; then
    echo -n "* Deleting Docker volumes in 5 seconds (warning: this delete all document data)..."
    sleep 5
    true || rm DOCKER_MAYAN_VOLUME -Rf
    true || rm DOCKER_POSTGRES_VOLUME -Rf
    echo "Done"
    fi

    echo -n "* Pulling (downloading) the Mayan EDMS Docker image..."
    docker pull $DOCKER_MAYAN_IMAGE >/dev/null
    echo "Done"

    echo -n "* Pulling (downloading) the PostgreSQL Docker image..."
    docker pull $DOCKER_POSTGRES_IMAGE > /dev/null
    echo "Done"

    echo -n "* Deploying the PostgreSQL container..."
    docker run -d \
    --name $DOCKER_POSTGRES_CONTAINER \
    --restart=always \
    -p $DOCKER_POSTGRES_PORT:5432 \
    -e POSTGRES_USER=$DATABASE_USER \
    -e POSTGRES_DB=$DATABASE_NAME \
    -e POSTGRES_PASSWORD=$DATABASE_PASSWORD \
    -v $DOCKER_POSTGRES_VOLUME:/var/lib/postgresql/data \
    $DOCKER_POSTGRES_IMAGE >/dev/null
    echo "Done"

    echo -n "* Waiting for the PostgreSQL container to be ready (10 seconds)..."
    sleep 10
    echo "Done"

    echo -n "* Deploying Mayan EDMS container..."
    docker run -d \
    --name $DOCKER_MAYAN_CONTAINER \
    --restart=always \
    -p 80:8000 \
    -e MAYAN_DATABASE_ENGINE=django.db.backends.postgresql \
    -e MAYAN_DATABASE_HOST=172.17.0.1 \
    -e MAYAN_DATABASE_NAME=$DATABASE_NAME \
    -e MAYAN_DATABASE_PASSWORD=$DATABASE_PASSWORD \
    -e MAYAN_DATABASE_USER=$DATABASE_USER \
    -e MAYAN_DATABASE_PORT=$DOCKER_POSTGRES_PORT \
    -e MAYAN_DATABASE_CONN_MAX_AGE=60 \
    -v $DOCKER_MAYAN_VOLUME:/var/lib/mayan \
    $DOCKER_MAYAN_IMAGE >/dev/null
    echo "Done"

    echo -n "* Waiting for the Mayan EDMS container to be ready (might take a few minutes)..."
    while ! curl --output /dev/null --silent --head --fail http://localhost:80; do sleep 1 && echo -n .; done;
    echo "Done"
    ย 

    • Upvote 1
  2. 7 minutes ago, jonathanm said:

    Yeah, apparently Nextcloud doesn't upgrade well as an embedded docker update, since there are scripts that need to be run as a part of the update to modify the database and other stuff.

    ย 

    What is gained by updating the docker container if we updated Nextcloud through its GUI?

  3. I followed Spaceinvaderone's video in getting Nextcloud running with letsencrypt and a personal DNS and everything seems to be working great. However, if I go to my public IP address I land on a page that shows:

    ย 

    Welcome to our server

    The website is currently being setup under this address.

    For help and support, please contact:ย [email protected]

    ย 

    Is there a way to prevent that?ย ย 

  4. Duplicati dies a lot on my system.ย  It becomes unresponsive, I can't get to the webpage but I can get into the console.ย  Top from within the container shows zero cpu and memory.ย  I can't get the container to stop even if I issue the kill command. Any ideas on what I should look for?

  5. On 8/14/2018 at 4:04 PM, ken-ji said:

    Tried this already. with a fixed IP and/or fixed mac address. In fact, changing the docker IP and/or mac address doesn't make it drop the link, but a server restart does.

    ย 

    Read about this is and read the fine print - anything with xattr support should still work, and AFAIK, XFS has xattr at least....

    ย 

    Sounds like they won't support any Linux file system except unencrypted ext4. I received the email from them today that identified my unRAID server using your docker as not compatible beginning November 1. Luckily, I just got Nextcloud running so goodbye Dropbox.ย 

  6. I have syncthing setup and working perfectly but I need to add another share to give syncthing access.

    ย 

    Right now I have "/mnt/user/unRAID/" set as "/sync" in Host Path 2.ย  I would like to change that to "mnt/user/" to give access to other shares.ย  Is this possible without the docker reinstalling and losing the current settings?ย  I've made similar changes to other docker containers and it's resulted in losing all the settings and the container installing fresh.ย ย 

  7. 1 hour ago, Naed said:

    Hi Ray,

    ย 

    I'm keen to see a screenshot of your settings as I've had no success getting Mayan installed.

    ย 

    Cheers,

    Dean

    ย 

    I would be happy to send the screenshot but I ended up moving to a VM and installed it with MySql.ย  The built in database just couldn't keep up with the document load.ย ย 

  8. I am really hoping someone can help me with this.

    ย 

    I was able to get MayanEDMS dockerย installed and working but because of the amount of data I'm trying to load into it, it starts chocking because of the default database it uses.

    ย 

    They have instructions for how to install using a mysql dockerย https://www.mayan-edms.com/post/deploy-mayan-docker-mysql/

    ย 

    I went through that process on a Ubuntu VM and it works very good.ย  The issue is that it stores all the data in /var/lib/docker/volumes and I can't for the life of me get it to store the data on a unRAID share.ย  I have a share mounted and accessible on the VM but I can't get docker to use it.

    ย 

    Is there anyone that can either help me install dockers as described inย the second linkย directly on unRAID or give me some pointers to get the persistent volume on a VM to be on a unRAID share?ย  Free would be great but I am more than willing to pay someone for their time.ย  I've been at this for 2 days and I'm not getting far...

    ย 

  9. On 8/24/2016 at 5:16 AM, Jammie said:

    ย 

    I would like to second this request for Mayan EDMS.

    ย 

    There's currently a Docker container on docker hub (source on GitLab) but it doesn't support upgrading. I'm currently looking into it myself, but I think someone with more docker experience would be able to do it easily.

    ย 

    I know this is an old post but I was able to install the Mayan EDMS docker on unRAID.ย  I passed shares to it so the files would be stored outside the docker.ย  So far it seems to be working great.ย  I would be happy to share a screenshot of the settings if anyone would like to see it.

    • Upvote 1
  10. I uploaded a ISO of the usb boot disk that I've successfully used to install in the past to unRAID (I'm not local to the unRAID server for a while) to try to reinstall OSX that somehow corrupted the vdisk.ย  I've followed the video to install but did the qemu-img command on the iso file instead of the usb disk.

    ย 

    Clover boots but doesn't show any disk option.ย  Any ideas what could be causing this?

  11. I had this running pretty well for a few days then it stopped booting.ย  It looks like files on unraid were deleted (no idea how...).ย  I'm now 100's of miles away from the unraid server but I do still have the flash drive with the install files on it.ย  Is there anyway to do the install remotely?ย  I no longer have the .img file on the server that was created with the qemu-img command.

    ย 

    Is there a way to do this remotely?

ร—
ร—
  • Create New...