aboutsummaryrefslogtreecommitdiffstats
path: root/docker/README.md
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-30 10:10:36 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-30 10:10:36 +0530
commit4fd78e0deddcb51a0b4e07c64d2013fe545179a5 (patch)
tree925c65bd3578c4027c1a2346b5060f4d02352949 /docker/README.md
parentLock Docker base image to 14.17 as expected by the server code. (diff)
downloadferdium-server-4fd78e0deddcb51a0b4e07c64d2013fe545179a5.tar.gz
ferdium-server-4fd78e0deddcb51a0b4e07c64d2013fe545179a5.tar.zst
ferdium-server-4fd78e0deddcb51a0b4e07c64d2013fe545179a5.zip
Fix some more documentation
Diffstat (limited to 'docker/README.md')
-rw-r--r--docker/README.md50
1 files changed, 24 insertions, 26 deletions
diff --git a/docker/README.md b/docker/README.md
index 33e78c0..7581bef 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,5 +1,5 @@
1# Ferdi-server-docker 1# Ferdi-server-docker
2[Ferdi](https://github.com/getferdi/ferdi) is a hard-fork of [Franz](https://github.com/meetfranz/franz), adding awesome features and removing unwanted ones. Ferdi-server is an unofficial replacement of the Franz server for use with the Ferdi Client. 2[Ferdi](https://github.com/getferdi/ferdi) is a hard-fork of [Franz](https://github.com/meetfranz/franz), adding awesome features and removing unwanted ones. Ferdi-server is an unofficial replacement of the Franz server for use with the Ferdi Client.
3 3
4This is a dockerized version of [Ferdi-server](https://github.com/getferdi/server) running on Alpine Linux and Node.js (v10.16.3). 4This is a dockerized version of [Ferdi-server](https://github.com/getferdi/server) running on Alpine Linux and Node.js (v10.16.3).
5 5
@@ -35,7 +35,7 @@ To create the docker container with the proper parameters:
35 docker create \ 35 docker create \
36 --name=ferdi-server \ 36 --name=ferdi-server \
37 -e NODE_ENV=development \ 37 -e NODE_ENV=development \
38 -e EXTERNAL_DOMAIN=<ferdi-serverdomain> \ 38 -e EXTERNAL_DOMAIN=<ferdi-serverdomain> \
39 -e DB_CONNECTION=<database> \ 39 -e DB_CONNECTION=<database> \
40 -e DB_HOST=<yourdbhost> \ 40 -e DB_HOST=<yourdbhost> \
41 -e DB_PORT=<yourdbport> \ 41 -e DB_PORT=<yourdbport> \
@@ -65,15 +65,15 @@ To create the docker container with the proper parameters:
65 65
66 You can use the provided sample [docker-compose.yml](https://github.com/getferdi/server/tree/master/docker/docker-compose.yml) if you are happy with the default environmental variables. This will pull the latest image from Docker Hub or use a local copy of the image which you can build using the instructions provided in the [Building locally section](#building-locally). 66 You can use the provided sample [docker-compose.yml](https://github.com/getferdi/server/tree/master/docker/docker-compose.yml) if you are happy with the default environmental variables. This will pull the latest image from Docker Hub or use a local copy of the image which you can build using the instructions provided in the [Building locally section](#building-locally).
67 67
68 To start the application, use `docker-compose up -d`. 68 To start the application, use `docker-compose -f docker/docker-compose.yml up -d`.
69The server will be launched at [http://localhost:3333/](http://localhost:3333/) address. 69The server will be launched at [http://localhost:3333/](http://localhost:3333/) address.
70 70
71## Configuration 71## Configuration
72 72
73Container images are configured using parameters passed at runtime (such as those above). An explanaition of the default parameters is included below, but please see [the Docker documentation](https://docs.docker.com/get-started/overview/) for additional information. 73Container images are configured using parameters passed at runtime (such as those above). An explanaition of the default parameters is included below, but please see [the Docker documentation](https://docs.docker.com/get-started/overview/) for additional information.
74 74
75<strike>If any environmental parameter is not passed to the container, its value will be taken from the `/config/config.txt` file.</strike> 75<strike>If any environmental parameter is not passed to the container, its value will be taken from the `/config/config.txt` file.</strike>
76**Warning, the use of `config.txt` is now deprecated. Please make sure to pass the correct environmental variables to your container at runtime. ** 76**Warning, the use of `config.txt` is now deprecated. Please make sure to pass the correct environmental variables to your container at runtime. **
77 77
78| Parameter | Function | 78| Parameter | Function |
79| :----: | --- | 79| :----: | --- |
@@ -108,7 +108,7 @@ By enabling the `CONNECT_WITH_FRANZ` option, Ferdi-server can:
108 108
109## Supported databases and drivers 109## Supported databases and drivers
110 110
111To use a different database than the default, SQLite3, enter the driver code below in your ENV configuration. 111To use a different database than the default, SQLite3, enter the driver code below in your ENV configuration.
112 112
113| Database | Driver | 113| Database | Driver |
114| :----: | --- | 114| :----: | --- |
@@ -150,7 +150,7 @@ If you are an existing Ferdi-server user who usees an external database or diffe
150| `-v <path to recipes>:/app/recipes` | this will strore Ferdi-server's recipes on the docker host for persistence | 150| `-v <path to recipes>:/app/recipes` | this will strore Ferdi-server's recipes on the docker host for persistence |
151 151
152**In eithr case, pleasee be sure to pass the correct variables to the new Ferdi-server container in order maintain access to your existing database.** 152**In eithr case, pleasee be sure to pass the correct variables to the new Ferdi-server container in order maintain access to your existing database.**
153 153
154## NGINX config block 154## NGINX config block
155 155
156To access Ferdi-server from outside of your home network on a subdomain use this server block: 156To access Ferdi-server from outside of your home network on a subdomain use this server block:
@@ -158,19 +158,19 @@ To access Ferdi-server from outside of your home network on a subdomain use this
158``` 158```
159# Ferdi-server 159# Ferdi-server
160server { 160server {
161 listen 443 ssl http2; 161 listen 443 ssl http2;
162 server_name ferdi.my.website; 162 server_name ferdi.my.website;
163 163
164 # all ssl related config moved to ssl.conf 164 # all ssl related config moved to ssl.conf
165 include /config/nginx/ssl.conf; 165 include /config/nginx/ssl.conf;
166 166
167 location / { 167 location / {
168 proxy_pass http://<Ferdi-IP>:3333; 168 proxy_pass http://<Ferdi-IP>:3333;
169 proxy_set_header X-Real-IP $remote_addr; 169 proxy_set_header X-Real-IP $remote_addr;
170 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 170 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
171 proxy_set_header Host $host; 171 proxy_set_header Host $host;
172 proxy_set_header X-Forwarded-Proto $scheme; 172 proxy_set_header X-Forwarded-Proto $scheme;
173 } 173 }
174} 174}
175``` 175```
176 176
@@ -217,15 +217,13 @@ Below are the instructions for updating the container to get the most recent ver
217* Delete the container: `docker rm ferdi-server` 217* Delete the container: `docker rm ferdi-server`
218* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and ENV settings will be preserved) 218* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and ENV settings will be preserved)
219* Start the new container: `docker start ferdi-server` 219* Start the new container: `docker start ferdi-server`
220* You can also remove the old dangling images: `docker image prune`
221 220
222### Via Docker Compose 221### Via Docker Compose
223 222
224* Update all images: `docker-compose pull` 223* Update all images: `docker-compose -f docker/docker-compose.yml pull`
225 * or update a single image: `docker-compose pull ferdi-server` 224 * or update a single image: `docker-compose -f docker/docker-compose.yml pull ferdi-server`
226* Let compose update all containers as necessary: `docker-compose up -d` 225* Let compose update all containers as necessary: `docker-compose -f docker/docker-compose.yml up -d`
227 * or update a single container: `docker-compose up -d ferdi-server` 226 * or update a single container: `docker-compose -f docker/docker-compose.yml up -d ferdi-server`
228* You can also remove the old dangling images: `docker image prune`
229 227
230## Building locally 228## Building locally
231 229