@@ -48,20 +48,20 @@ If you do not want to install the required dependencies, we provide a Docker ima
...
@@ -48,20 +48,20 @@ If you do not want to install the required dependencies, we provide a Docker ima
To run a ephemeral instance, on the `$HOME/myapp` directory, use the following command (warning: all the data stored by your application in couchdb and the VFS won't remain after):
To run a ephemeral instance, on the `$HOME/myapp` directory, use the following command (warning: all the data stored by your application in couchdb and the VFS won't remain after):
```sh
```sh
$ docker run -d\
$ docker run -it\
-p 8080:8080 \
-p 8080:8080 \
-v"$HOME/myapp":/data/cozy-app \
-v"$HOME/myapp":/data/cozy-app \
cozy:cozy-app-dev
cozy/cozy-app-dev
```
```
To keep your data even when stopping the container, run the following command:
To keep your data even when stopping the container, run the following command:
```sh
```sh
$ docker run -d\
$ docker run -it\
-p 8080:8080 \
-p 8080:8080 \
-v"$HOME/myapp":/data/cozy-app \
-v"$HOME/myapp":/data/cozy-app \
-v"$(pwd)":/usr/local/couchdb/data \
-v"$(pwd)":/usr/local/couchdb/data \
cozy:cozy-app-dev
cozy/cozy-app-dev
```
```
You can also expose the couchdb port (listening in the container on 5984) in order to access its admin page. For instance add `-p 1234:5984` to access to the admin interface on `http://localhost:1234/_utils`.
You can also expose the couchdb port (listening in the container on 5984) in order to access its admin page. For instance add `-p 1234:5984` to access to the admin interface on `http://localhost:1234/_utils`.