diff options
author | xthursdayx <xthursdayx@protonmail.com> | 2019-10-03 01:38:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 01:38:46 -0400 |
commit | bbc3f973ce3ba04db79a92a06008073e836b22bf (patch) | |
tree | 54aad3c7372f315f8923f2d8b30775d3b258bd77 | |
parent | Fixed server-docker link in README.md (diff) | |
download | ferdium-server-bbc3f973ce3ba04db79a92a06008073e836b22bf.tar.gz ferdium-server-bbc3f973ce3ba04db79a92a06008073e836b22bf.tar.zst ferdium-server-bbc3f973ce3ba04db79a92a06008073e836b22bf.zip |
Added correct docker volume mounts
Added correct volume mounts for database and recipe persistence.
-rw-r--r-- | README.md | 32 |
1 files changed, 18 insertions, 14 deletions
@@ -40,20 +40,22 @@ After setting up the docker container we recommend you to set up an NGINX revers | |||
40 | 40 | ||
41 | ```sh | 41 | ```sh |
42 | docker create \ | 42 | docker create \ |
43 | --name=ferdi-server \ | 43 | --name=ferdi-server \ |
44 | -e NODE_ENV=development \ | 44 | -e NODE_ENV=development \ |
45 | -e DB_CONNECTION=<database> \ | 45 | -e DB_CONNECTION=<database> \ |
46 | -e DB_HOST=<yourdbhost> \ | 46 | -e DB_HOST=<yourdbhost> \ |
47 | -e DB_PORT=<yourdbPORT> \ | 47 | -e DB_PORT=<yourdbPORT> \ |
48 | -e DB_USER=<yourdbuser> \ | 48 | -e DB_USER=<yourdbuser> \ |
49 | -e DB_PASSWORD=<yourdbpass> \ | 49 | -e DB_PASSWORD=<yourdbpass> \ |
50 | -e DB_DATABASE=<yourdbdatabase> \ | 50 | -e DB_DATABASE=<yourdbdatabase> \ |
51 | -e IS_CREATION_ENABLED=true \ | 51 | -e IS_CREATION_ENABLED=true \ |
52 | -e CONNECT_WITH_FRANZ=true \ | 52 | -e CONNECT_WITH_FRANZ=true \ |
53 | -p <port>:80 \ | 53 | -p <port>:80 \ |
54 | -v <path to data>:/config \ | 54 | -v <path to data>:/config \ |
55 | --restart unless-stopped \ | 55 | -v <path to database>:/usr/src/app/database \ |
56 | getferdi/ferdi-server | 56 | -v <path to recipes>:/usr/src/app/recipes \ |
57 | --restart unless-stopped \ | ||
58 | xthursdayx/ferdi-server-docker | ||
57 | ``` | 59 | ``` |
58 | 60 | ||
59 | Alternatively, you can also use docker-compose v2 schemas | 61 | Alternatively, you can also use docker-compose v2 schemas |
@@ -77,6 +79,8 @@ After setting up the docker container we recommend you to set up an NGINX revers | |||
77 | - CONNECT_WITH_FRANZ=true/flase | 79 | - CONNECT_WITH_FRANZ=true/flase |
78 | volumes: | 80 | volumes: |
79 | - <path to data>:/config | 81 | - <path to data>:/config |
82 | - <path to database>:/usr/src/app/database | ||
83 | - <path to recipes>:/usr/src/app/recipes | ||
80 | ports: | 84 | ports: |
81 | - <port>:80 | 85 | - <port>:80 |
82 | restart: unless-stopped | 86 | restart: unless-stopped |