FileSync
Prerequisite: Docker installation
FileSync is deployed as docker container. You need a running docker installation for it to be installed. if you setup a new VM for this, we suggest the newest Ubuntu LTS release.
If you already have a server or VM with a running docker, just skip this chapter and go on with "Installation".
Install docker on linux
The installation of docker on linux is straightforward. If you Google this topic you will find explanations from the Docker website which invite you to do a manual installation of docker by downloading and installing their actual version. From a technical perspective this is not needed. At least Brinkhaus does not need bleeding edge docker installation. We recommend to just use the docker version which comes from your Linux distribution.
On a typical Ubuntu or Debian you go with
Install docker on Windows
The installation of docker for Windows is described here: https://docs.docker.com/desktop/install/windows-install/
Installation
On a computer with Docker, just choose a target directory which fits for your case, deploy our docker-compose file there and start the app.
cd /var/docker_data/
wget https://xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1
sudo docker login registry.gitlab.com/v2/b3935 -u datastore-dl -p glpat-S9xzXzoUxuxGboW53r2x
sudo docker-compose up
You are after
sudo mkdir /var/docker_data
cd /var/docker_data/
sudo apt install docker docker-compose
sudo docker login registry.gitlab.com/v2/b3935 -u datastore-dl -p glpat-S9xzXzoUxuxGboW53r2x
sudo docker-compose up
version: "3"
services:
traefik:
image: traefik:v2.2
command:
- "--providers.docker"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/var/docker_data/data
filesync:
image: registry.gitlab.com/b3935/ftpmodule/filesync:latest
container_name: filesync
restart: always
volumes:
- ./data:/app/data
# ports:
# - 80:80
labels:
- "traefik.http.routers.filesync.entrypoints=web"
- "traefik.http.routers.filesync.rule=Host(`datastore-playground.euprogigant.io`)"
- "traefik.http.routers.filesync.middlewares=auth"
- "traefik.http.services.filesync.loadbalancer.server.port=80"
- "traefik.http.middlewares.auth.basicauth.users=admin:$$2y$$10$$2u0mbq4FI.EpN6Gu5O.BpO5Fh8RrXBr.MUT8JyqbYGtNfLn19OhTe" # credentials admin:changeme
# - "traefik.http.middlewares.auth.basicauth.usersfile=/var/docker_data/data/settings/hashedPW.txt"