diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 36 |
1 files changed, 20 insertions, 16 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 | getferdi/ferdi-server | ||
57 | ``` | 59 | ``` |
58 | 60 | ||
59 | Alternatively, you can also use docker-compose v2 schemas | 61 | Alternatively, you can also use docker-compose v2 schemas |
@@ -63,7 +65,7 @@ After setting up the docker container we recommend you to set up an NGINX revers | |||
63 | version: "2" | 65 | version: "2" |
64 | services: | 66 | services: |
65 | ferdi-server: | 67 | ferdi-server: |
66 | image: xthursday/ferdi-server-docker | 68 | image: getferdi/ferdi-server |
67 | container_name: ferdi-server | 69 | container_name: ferdi-server |
68 | environment: | 70 | environment: |
69 | - NODE_ENV=development | 71 | - NODE_ENV=development |
@@ -77,13 +79,15 @@ 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 |
83 | ``` | 87 | ``` |
84 | 3. Optionally, you can now [set up Nginx as a reverse proxy](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04#set-up-nginx-as-a-reverse-proxy-server). | 88 | 3. Optionally, you can now [set up Nginx as a reverse proxy](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04#set-up-nginx-as-a-reverse-proxy-server). |
85 | 89 | ||
86 | For more information on configuring the Docker image, visit the Docker image repository at <https://github.com/getferdi/ferdi-server>. | 90 | For more information on configuring the Docker image, visit the Docker image repository at <https://github.com/getferdi/server-docker>. |
87 | 91 | ||
88 | ### Manual setup | 92 | ### Manual setup |
89 | 1. Clone this repository | 93 | 1. Clone this repository |