Jump to content

Ray

Members
  • Posts

    28
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ray's Achievements

Noob

Noob (1/14)

6

Reputation

  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"
  2. There are a couple disk intensive dockers out there that will do this on my system as well.
  3. What is gained by updating the docker container if we updated Nextcloud through its GUI?
  4. What are the weekly (or that's what it seems like) container updates doing? Where can I find the changelog? I updated Nextcloud through its WebGUI, do I need to also do the container updates through unRAID?
  5. 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?
  6. 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?
  7. 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.
  8. Is there a way do get Nextcloud to OCR and index my documents with this install? I tried installing Elastic Search but unfortunately it looks like I would need to run things from the command line so it wouldn't persist after container updates.
  9. Here's their new process for installing the current version https://groups.google.com/forum/#!topic/mayan-edms/IMjVzpMn6PU Can I just run this from the unRAID command line and have it set up the docker container?
  10. 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.
  11. https://github.com/RyanNoelk/OpenEats They have a container that I installed in a VM but I thought an unRAID template would get some interest from others. It's a great web based multi-user recipe manager.
  12. 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.
  13. 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...
  14. 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.
×
×
  • Create New...