This repo builds voyager. There are 3 build files, for build time, run time and portainer respectively.
docker-compose-build.yml
- is the build time file, it builds the docker imagedocker-compose.yml
- is the run time file, it does not build but use the pre-built image from the build scriptdocker-compose-portainer.yml
- is the special Portainer running file, it uses the pre-built image from the build script and only runs on Portainer
Build the image
docker-compose -f docker-compose-build.yml build
docker-compose up -d
Note: The -d
option puts the conatiner in daemon mode and keeps it alive
docker-compose down
Clone the repo to a different folder every time
git clone https://github.com/vicding-mi/voyager.git myfolder # please change myfolder every time
Then change the USERNAME and PASSWORD in the env file
cd myfolder # replace myfolder with your actual folder name
vim .env
Sample content of the env file
.
.
.
USERNAME=myuser # this will be part of your domain name
PASSWORD=mypassword # please make it really safe!!!
This script creates and starts the build
./docker-compose-multiple-create.sh
When this script finishes, it will ask you to start the stack
This script stops the stack (all the config and data is preserved!)
./docker-compose-multiple-stop.sh
This script start the pre-built stack (all the config and data is preserved!)
./docker-compose-multiple-start.sh
Whenever user saves their work externally, for example, save their work in voyager, they won't see their work automatically in Nextcloud. This is due to the fact that all the externally added files have to be scanned first.
To tackle this issue, a cron.sh
file is created and should be added to crontab of the root user.
It is possible to use user level crontab, however, that might have unknow consequence for containers
created by different users. To be on the safe side, for now, cron.sh
should be added to root space.
Adding cron job should be done only once. It will take care of all the containers within one folder.
Below is the config of the cron.sh
wd=/data/pure3d_dev
scan_script=docker-compose-multiple-scan.sh
Line 1 sets the working directory of all the instances Line 2 sets the job we want to invoke
and be default the cron job runs every 2 minutes, users will see 2 minutes delay.