diff options
author | Michal Kostewicz <m.kostewicz84@gmail.com> | 2021-02-08 17:53:04 +0100 |
---|---|---|
committer | Michal Kostewicz <m.kostewicz84@gmail.com> | 2021-02-08 17:59:41 +0100 |
commit | b250a512363fb127d79078f13e1a0a132569e74e (patch) | |
tree | 3cd6fbdb17ab11188371c62311c8f89a219b2ad9 /docker | |
parent | Adjust README info about DATA_DIR (diff) | |
download | ferdium-server-b250a512363fb127d79078f13e1a0a132569e74e.tar.gz ferdium-server-b250a512363fb127d79078f13e1a0a132569e74e.tar.zst ferdium-server-b250a512363fb127d79078f13e1a0a132569e74e.zip |
Fix DATA_DIR examples in README.md
Diffstat (limited to 'docker')
-rw-r--r-- | docker/README.md | 4 | ||||
-rw-r--r-- | docker/docker-compose.yml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docker/README.md b/docker/README.md index 6e18d16..8518e15 100644 --- a/docker/README.md +++ b/docker/README.md | |||
@@ -56,6 +56,7 @@ To create the docker container with the proper parameters: | |||
56 | -e IS_DASHBOARD_ENABLED=true \ | 56 | -e IS_DASHBOARD_ENABLED=true \ |
57 | -e IS_REGISTRATION_ENABLED=true \ | 57 | -e IS_REGISTRATION_ENABLED=true \ |
58 | -e CONNECT_WITH_FRANZ=true \ | 58 | -e CONNECT_WITH_FRANZ=true \ |
59 | -e DATA_DIR=data \ | ||
59 | -p <port>:80 \ | 60 | -p <port>:80 \ |
60 | -v <path to data>:/config \ | 61 | -v <path to data>:/config \ |
61 | -v <path to database>:/app/database \ | 62 | -v <path to database>:/app/database \ |
@@ -102,7 +103,7 @@ If any environmental parameter is not passed to the container, its value will be | |||
102 | | `-e IS_DASHBOARD_ENABLED=true` | for specifying whether to enable the Ferdi-server dashboard, default is true | | 103 | | `-e IS_DASHBOARD_ENABLED=true` | for specifying whether to enable the Ferdi-server dashboard, default is true | |
103 | | `-e IS_REGISTRATION_ENABLED=true` | for specifying whether to allow user registration, default is true | | 104 | | `-e IS_REGISTRATION_ENABLED=true` | for specifying whether to allow user registration, default is true | |
104 | | `-e CONNECT_WITH_FRANZ=true` | for specifying whether to enable connections to the Franz server, default is true | | 105 | | `-e CONNECT_WITH_FRANZ=true` | for specifying whether to enable connections to the Franz server, default is true | |
105 | | `-e DATA_DIR=database` | for specifying sql-lite database folder, default is database. Currently you need to use folder inside `/app` directory | | 106 | | `-e DATA_DIR=data` | for specifying sql-lite database folder, default is database. | |
106 | | `-v <path to data>:/config` | this will store persistent ENV data on the docker host | | 107 | | `-v <path to data>:/config` | this will store persistent ENV data on the docker host | |
107 | | `-v <path to database>:/app/database` | this will strore Ferdi-server's database on the docker host for persistence | | 108 | | `-v <path to database>:/app/database` | this will strore Ferdi-server's database on the docker host for persistence | |
108 | | `-v <path to recipes>:/app/recipes` | this will strore Ferdi-server's recipes on the docker host for persistence | | 109 | | `-v <path to recipes>:/app/recipes` | this will strore Ferdi-server's recipes on the docker host for persistence | |
@@ -207,7 +208,6 @@ Below are the instructions for updating the container to get the most recent ver | |||
207 | If you want to build this image locally, please run this command from root of [ferdi server repository](https://github.com/getferdi/server/tree/master/): | 208 | If you want to build this image locally, please run this command from root of [ferdi server repository](https://github.com/getferdi/server/tree/master/): |
208 | ``` | 209 | ``` |
209 | docker build \ | 210 | docker build \ |
210 | -f docker/Dockerfile \ | ||
211 | --no-cache \ | 211 | --no-cache \ |
212 | --pull \ | 212 | --pull \ |
213 | -t getferdi/ferdi-server:latest . | 213 | -t getferdi/ferdi-server:latest . |
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8a8c795..64797c4 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml | |||
@@ -24,10 +24,10 @@ services: | |||
24 | - IS_DASHBOARD_ENABLED=true | 24 | - IS_DASHBOARD_ENABLED=true |
25 | - IS_REGISTRATION_ENABLED=true | 25 | - IS_REGISTRATION_ENABLED=true |
26 | - CONNECT_WITH_FRANZ=false | 26 | - CONNECT_WITH_FRANZ=false |
27 | - DATA_DIR=my-database | 27 | - DATA_DIR=data |
28 | volumes: | 28 | volumes: |
29 | - ferdi-config-vol:/config | 29 | - ferdi-config-vol:/config |
30 | - ferdi-database-vol:/app/my-database | 30 | - ferdi-database-vol:/app/data |
31 | - ferdi-recipes-vol:/app/recipes | 31 | - ferdi-recipes-vol:/app/recipes |
32 | ports: | 32 | ports: |
33 | - 3333:3333 | 33 | - 3333:3333 |