Wiki source code of FileSync
Version 7.3 by Jan Brinkhaus on 2023/02/03 11:49
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Prerequisite: Docker installation = | ||
2 | |||
3 | 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. | ||
4 | |||
5 | If you already have a server or VM with a running docker, just skip this chapter and go on with "Installation". | ||
6 | |||
7 | === Install docker on linux === | ||
8 | |||
9 | 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. | ||
10 | |||
11 | On a typical Ubuntu or Debian you go with | ||
12 | |||
13 | {{code language="Shell script"}} | ||
14 | sudo apt install docker-compose | ||
15 | {{/code}} | ||
16 | |||
17 | === Install docker on Windows === | ||
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/]] | ||
20 | |||
21 | = Installation = | ||
22 | |||
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 | |||
25 | **Suggestion for quick start for linux** | ||
26 | |||
27 | {{code language="Shell script"}} | ||
28 | sudo mkdir /var/docker_data | ||
29 | cd /var/docker_data/ | ||
30 | wget https://xwiki.brinkhaus-gmbh.de/bin/download/Product%20support/FileSync/WebHome/docker-compose.yml?rev=1.1 | ||
31 | sudo docker login registry.gitlab.com/v2/b3935 -u datastore-dl -p glpat-S9xzXzoUxuxGboW53r2x | ||
32 | |||
33 | sudo docker-compose up | ||
34 | {{/code}} | ||
35 | |||
36 | You are afterwards able to log in via the web interface on port 80 of the server where you installed FileSync. | ||
37 | |||
38 | |||
39 | **Suggestion for quick start for Windows** | ||
40 | |||
41 | **Place the docker-compose file from** | ||
42 | |||
43 | sudo docker-compose up | ||
44 | |||
45 | (% class="box" %) | ||
46 | ((( | ||
47 | ##version: "3"## | ||
48 | ))) | ||
49 | |||
50 | (% class="box" %) | ||
51 | ((( | ||
52 | ##services: | ||
53 | traefik: | ||
54 | image~: traefik:v2.2 | ||
55 | command: | ||
56 | - "~-~-providers.docker" | ||
57 | - "~-~-entrypoints.web.address=:80" | ||
58 | ports: | ||
59 | - "80:80" | ||
60 | volumes: | ||
61 | - /var/run/docker.sock:/var/run/docker.sock | ||
62 | - ./data:/var/docker_data/data## | ||
63 | ))) | ||
64 | |||
65 | (% class="box" %) | ||
66 | ((( | ||
67 | ## filesync: | ||
68 | image~: registry.gitlab.com/b3935/ftpmodule/filesync:latest | ||
69 | container_name: filesync | ||
70 | restart: always | ||
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: | ||
84 | - "traefik.http.routers.filesync.entrypoints=web" | ||
85 | - "traefik.http.routers.filesync.rule=Host(`datastore-playground.euprogigant.io`)" | ||
86 | - "traefik.http.routers.filesync.middlewares=auth" | ||
87 | - "traefik.http.services.filesync.loadbalancer.server.port=80" | ||
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"## | ||
90 | ))) | ||
91 | |||
92 | |||
93 |