You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ You need [Docker](https://www.docker.com/).
14
14
Docker is a way to organise and run multiple applications. You can imagine it like a virtual machine (technical it`s a bit different), with a small file- and operating system within your machine.
15
15
Sounds more scary than it actually is. Different Applications run in different containers, these only contain the necessary software to run the application.
16
16
The containers use the resources of the host machine, depending on the load.
17
-
Advantages are security and the possibility to easily shutdown and update the services. See more under [Usage](#Usage).
17
+
Advantages are security and the possibility to easily shutdown and update the services. See more under ["Running FileFighter"](#Running FileFighter).
18
18
19
19
#### Docker
20
20
First check whether you have Docker already installed.
@@ -26,7 +26,7 @@ If you see something like that (your version might be different):
26
26
```shell script
27
27
Docker version 19.03.13, build 4484c46d9f
28
28
```
29
-
You are good to go, and you can skip to [Usage](#Usage).
29
+
You are good to go, and you can skip to ["Installing FileFighter"](#Installing FileFighter).
30
30
31
31
To install **Docker** on Unix you can either use [snap](https://www.howtogeek.com/660193/how-to-work-with-snap-packages-on-linux/) or [apt](https://en.wikipedia.org/wiki/APT_(software)) as a package manager.
32
32
With snap its easier but of course it's not always possible to use snap.
@@ -44,16 +44,16 @@ After successfully installing Docker you can start using FileFighter.
44
44
Just download this repository as a zipfile [here](https://github.com/FileFighter/ClientSetup/releases/).
45
45
This repository contains the *Install.sh* installation script.
The code can be found at: https://www.github.com/filefighter
79
79
80
80
-------------------------< Show Usage >---------------------------
@@ -86,6 +86,7 @@ usage: ffighter <args>
86
86
start - start the services.
87
87
stop - stop the services.
88
88
remove - remove all services.
89
+
update - update all the services that have a new version available.
89
90
```
90
91
You can see all the available options to run with *ffighter*.
91
92
@@ -96,6 +97,7 @@ You can see all the available options to run with *ffighter*.
96
97
| start | Start the services if already downloaded. |
97
98
| stop | Stop the services if running. |
98
99
| remove | Remove all services. |
100
+
| update | Update all the services that have a new version available. |
99
101
100
102
To start the Application just run:
101
103
```shell script
@@ -117,8 +119,7 @@ Valid keys to configure how FileFighter behaves are listed here:
117
119
118
120
| Key | Possible Values | Default | Description |
119
121
| :----: | :----: | :----: | :----: |
120
-
| rest_port | 0-65535 | 8080 | The port of the restapi service that will be published for the frontend. |
121
-
| frontend_port | 0-65535 | 80 | The port of the webapp (frontend) service. You can visit the FileFighter application over this port. |
122
+
| app_port | 0-65535 | 80 | The port of the application. You can visit the FileFighter application over this port. |
122
123
| db_user | any string | root | The name of the Database running in the background. |
123
124
| db_password | any string | none (see below) | The password of the database. (The database won't be exposed to the internet, but passwords never hurt.) |
124
125
| db_name | any string | filefighter | The name of the database. |
@@ -130,8 +131,34 @@ If the `db_password` key is empty, a random password will be generated.
130
131
131
132
Be carefully as the developers of FileFighter won't take responsibility when you are using the application or configuration options wrong or in a not intended way.
132
133
134
+
## Updating
135
+
To update us the update command:
136
+
137
+
```shell script
138
+
ffighter update
139
+
```
140
+
This will check if new versions of the different services are available and will apply the updates.
141
+
Depending on the configuration the update will either use the current stable version (recommended) or the newest latest version (experimental).
142
+
143
+
In case you are using the latest versions you will also need to install [regclient](https://github.com/regclient/regclient/releases).
144
+
Download the right version depending on your operating system and architecture, rename it to 'regctl', make it executable and move it to a folder that is in your path variable.
145
+
146
+
### Auto update
147
+
To achieve automatic updates you can set up a cron job as described in this [article](https://ostechnix.com/a-beginners-guide-to-cron-jobs/) with the update command.
148
+
149
+
## Other operation systems (Windows)
150
+
151
+
If you are not able to run the shell script for the installation you can still run FileFighter using [Docker Compose](https://docs.docker.com/compose/).
152
+
Just download the [docker-compose.yml](https://raw.githubusercontent.com/FileFighter/ClientSetup/master/docker-compose.yml) file or clone this repo and execute this command in the folder where the file is located:
153
+
154
+
```shell script
155
+
docker-compose up
156
+
```
157
+
This will also start all services and make them available [here](http://localhost:80/).
158
+
159
+
133
160
## Remaining Files
134
161
All the remaining not explicitly explained files are important for the scripts to work and should not be changed manually.
135
162
136
163
## Help
137
-
For further help, feedback or questions write us an [email](mailto:filefighter@t-online.de).
164
+
For further help, feedback or questions write us an [email](mailto:dev@filefighter.de).
0 commit comments