Changes for page FileSync
Last modified by Jan Brinkhaus on 2023/02/03 13:33
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -10,17 +10,13 @@ 10 10 11 11 On a typical Ubuntu or Debian you go with 12 12 13 -(% class="box" %) 14 -((( 15 -(% class="code" %) 16 -((( 13 +{{code language="Shell script"}} 17 17 sudo apt install docker-compose 18 -))) 19 -))) 15 +{{/code}} 20 20 21 21 === Install docker on Windows === 22 22 23 -The installation of docker for Windows is described here: [[https:~~/~~/docs.docker.com/desktop/install/windows-install/>> url:https://docs.docker.com/desktop/install/windows-install/]]19 +The installation of docker for Windows is described here: [[https:~~/~~/docs.docker.com/desktop/install/windows-install/>>https://docs.docker.com/desktop/install/windows-install/]] 24 24 25 25 = Installation = 26 26 ... ... @@ -28,24 +28,21 @@ 28 28 29 29 **Suggestion for quick start for linux** 30 30 31 -(% class="box" %) 32 -((( 33 -(% class="code" %) 34 -((( 27 +{{code language="Shell script"}} 35 35 sudo mkdir /var/docker_data 36 36 cd /var/docker_data/ 37 -wget https: ~/~/xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.130 +wget https://xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1 38 38 sudo docker login registry.gitlab.com/v2/b3935 -u datastore-dl -p glpat-S9xzXzoUxuxGboW53r2x 39 -\\sudo docker-compose up -d 40 -))) 41 -))) 42 42 33 +sudo docker-compose up -d 34 +{{/code}} 35 + 43 43 You are afterwards able to log in via the web interface on port 80 of the server where you installed FileSync. 44 44 45 45 46 46 **Suggestion for quick start for Windows** 47 47 48 -Place the docker-compose file from here [[https:~~/~~/xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1>> url:https://xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1]] in a directory of your needs and run "docker-compose up -d".41 +Place the docker-compose file from here [[https:~~/~~/xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1>>https://xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1]] in a directory of your needs and run "docker-compose up -d". 49 49 50 50 51 51 = Variants / hints = ... ... @@ -52,38 +52,35 @@ 52 52 53 53 You can adapt the docker-compose file to your local needs. The file which we give for a quick start is: 54 54 55 -(% class="box" %) 56 -((( 57 -(% class="code" %) 58 -((( 48 +{{code language="docker-compose"}} 59 59 version: "3" 60 -\\services: 50 + 51 +services: 61 61 filesync: 62 - image ~: registry.gitlab.com/b3935/ftpmodule/filesync:latest53 + image: registry.gitlab.com/b3935/ftpmodule/filesync:latest 63 63 container_name: filesync 64 64 restart: always 65 65 volumes: 66 66 - ./data:/app/data 67 -\\ ports: 68 - - 80:80\\ 69 -))) 70 -))) 71 71 59 + ports: 60 + - 80:80 61 + 62 +{{/code}} 63 + 72 72 This results in a password-less direct access to a UI on the target server. 73 73 74 74 We below give an example for enclosing FileSync with Traefik as middleware for adding an easy authentification function: 75 75 76 -(% class="box" %) 77 -((( 78 -(% class="code" %) 79 -((( 68 +{{code language="docker-compose"}} 80 80 version: "3" 81 -\\services: 70 + 71 +services: 82 82 traefik: 83 - image ~: traefik:v2.273 + image: traefik:v2.2 84 84 command: 85 - - " ~-~-providers.docker"86 - - " ~-~-entrypoints.web.address=:80"75 + - "--providers.docker" 76 + - "--entrypoints.web.address=:80" 87 87 ports: 88 88 - "80:80" 89 89 volumes: ... ... @@ -91,16 +91,19 @@ 91 91 # needed for using a dynamic password, settable from FileSync UI; links data/settings/ to the folder where 92 92 # it is described in the "labels" of the filesync container 93 93 - ./data:/var/docker_data/data 94 -\\ filesync: 95 - image~: registry.gitlab.com/b3935/ftpmodule/filesync:latest 84 + 85 + filesync: 86 + image: registry.gitlab.com/b3935/ftpmodule/filesync:latest 96 96 container_name: filesync 97 97 restart: always 98 98 volumes: 99 99 - ./data:/app/data 100 -\\# commented out because Traefik creates a protected rout for hisself 91 + 92 +# commented out because Traefik creates a protected rout for hisself 101 101 # ports: 102 102 # - 80:80 103 -\\ labels: 95 + 96 + labels: 104 104 - "traefik.http.routers.filesync.entrypoints=web" 105 105 - "traefik.http.routers.filesync.rule=Host(`datastore-playground.euprogigant.io`)" 106 106 - "traefik.http.routers.filesync.middlewares=auth" ... ... @@ -108,8 +108,9 @@ 108 108 # hard coded password; hash retrievable via "htpasswd -bnBC 10 admin PASSWORD" 109 109 - "traefik.http.middlewares.auth.basicauth.users=admin:$$2y$$10$$2u0mbq4FI.EpN6Gu5O.BpO5Fh8RrXBr.MUT8JyqbYGtNfLn19OhTe" # credentials admin:changeme 110 110 # dynamic password, settable from FileSync UI; needs link of data/settings/ in the docker container of Traefik 111 -# - "traefik.http.middlewares.auth.basicauth.usersfile=/var/docker_data/data/settings/hashedPW.txt"\\ 112 -))) 113 -))) 104 +# - "traefik.http.middlewares.auth.basicauth.usersfile=/var/docker_data/data/settings/hashedPW.txt" 114 114 106 +{{/code}} 115 115 108 + 109 +