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
-
... ... @@ -22,6 +22,8 @@ 22 22 23 23 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. 24 24 25 +**Suggestion for quick start for linux** 26 + 25 25 {{code language="Shell script"}} 26 26 sudo mkdir /var/docker_data 27 27 cd /var/docker_data/ ... ... @@ -28,70 +28,80 @@ 28 28 wget https://xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1 29 29 sudo docker login registry.gitlab.com/v2/b3935 -u datastore-dl -p glpat-S9xzXzoUxuxGboW53r2x 30 30 31 -sudo docker-compose up 33 +sudo docker-compose up -d 32 32 {{/code}} 33 33 34 -You are after 36 +You are afterwards able to log in via the web interface on port 80 of the server where you installed FileSync. 35 35 36 36 37 - sudomkdir/var/docker_data39 +**Suggestion for quick start for Windows** 38 38 39 -cd / var/docker_data/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". 40 40 41 -[[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]] 42 42 43 - sudoaptinstalldockerdocker-compose44 += Variants / hints = 44 44 45 - sudodocker loginregistry.gitlab.com/v2/b3935-udatastore-dl-p glpat-S9xzXzoUxuxGboW53r2x46 +You can adapt the docker-compose file to your local needs. The file which we give for a quick start is: 46 46 47 -sudo docker-compose up 48 +{{code language="docker-compose"}} 49 +version: "3" 48 48 49 -(% class="box" %) 50 -((( 51 -##version: "3"## 52 -))) 51 +services: 52 + filesync: 53 + image: registry.gitlab.com/b3935/ftpmodule/filesync:latest 54 + container_name: filesync 55 + restart: always 56 + volumes: 57 + - ./data:/app/data 53 53 54 -(% class="box" %) 55 -((( 56 -##services: 59 + ports: 60 + - 80:80 61 + 62 +{{/code}} 63 + 64 +This results in a password-less direct access to a UI on the target server. 65 + 66 +We below give an example for enclosing FileSync with Traefik as middleware for adding an easy authentification function: 67 + 68 +{{code language="docker-compose"}} 69 +version: "3" 70 + 71 +services: 57 57 traefik: 58 - image ~: traefik:v2.273 + image: traefik:v2.2 59 59 command: 60 - - " ~-~-providers.docker"61 - - " ~-~-entrypoints.web.address=:80"75 + - "--providers.docker" 76 + - "--entrypoints.web.address=:80" 62 62 ports: 63 63 - "80:80" 64 64 volumes: 65 65 - /var/run/docker.sock:/var/run/docker.sock 66 - - ./data:/var/docker_data/data## 67 -))) 81 +# needed for using a dynamic password, settable from FileSync UI; links data/settings/ to the folder where 82 +# it is described in the "labels" of the filesync container 83 + - ./data:/var/docker_data/data 68 68 69 -(% class="box" %) 70 -((( 71 -## filesync: 72 - image~: registry.gitlab.com/b3935/ftpmodule/filesync:latest 85 + filesync: 86 + image: registry.gitlab.com/b3935/ftpmodule/filesync:latest 73 73 container_name: filesync 74 74 restart: always 75 75 volumes: 76 - - ./data:/app/data## 77 -))) 90 + - ./data:/app/data 78 78 79 -(% class="box" %) 80 -((( 81 -### ports: 82 -# - 80:80## 83 -))) 92 +# commented out because Traefik creates a protected rout for hisself 93 +# ports: 94 +# - 80:80 84 84 85 -(% class="box" %) 86 -((( 87 -## labels: 96 + labels: 88 88 - "traefik.http.routers.filesync.entrypoints=web" 89 89 - "traefik.http.routers.filesync.rule=Host(`datastore-playground.euprogigant.io`)" 90 90 - "traefik.http.routers.filesync.middlewares=auth" 91 91 - "traefik.http.services.filesync.loadbalancer.server.port=80" 101 +# hard coded password; hash retrievable via "htpasswd -bnBC 10 admin PASSWORD" 92 92 - "traefik.http.middlewares.auth.basicauth.users=admin:$$2y$$10$$2u0mbq4FI.EpN6Gu5O.BpO5Fh8RrXBr.MUT8JyqbYGtNfLn19OhTe" # credentials admin:changeme 93 -# - "traefik.http.middlewares.auth.basicauth.usersfile=/var/docker_data/data/settings/hashedPW.txt"##94 - )))103 +# dynamic password, settable from FileSync UI; needs link of data/settings/ in the docker container of Traefik 104 +# - "traefik.http.middlewares.auth.basicauth.usersfile=/var/docker_data/data/settings/hashedPW.txt" 95 95 106 +{{/code}} 96 96 97 - 108 + 109 +