Changes for page FileSync

Last modified by Jan Brinkhaus on 2023/02/03 13:33

<
From version < 7.3 >
edited by Jan Brinkhaus
on 2023/02/03 11:49
To version < 8.1 >
edited by Jan Brinkhaus
on 2023/02/03 12:12
>
Change comment: There is no comment for this version

Summary

Details

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

Need support?

If you need support feel free to contact:

Jan Brinkhaus: 0049 179 3939 733