mirror of
https://github.com/bitnami/containers.git
synced 2026-03-06 15:09:19 +08:00
Add the bash and yaml syntax highlight
This commit is contained in:
@@ -16,7 +16,7 @@ To run this application you need Docker Engine 1.10.0. Docker Compose is recomen
|
||||
|
||||
This is the recommended way to run Parse Dashboard. You can use the following docker compose template:
|
||||
|
||||
```
|
||||
```yaml
|
||||
version: '2'
|
||||
services:
|
||||
mongodb:
|
||||
@@ -54,13 +54,13 @@ If you want to run the application manually instead of using docker-compose, the
|
||||
|
||||
1. Create a network for the application, Parse Server and the database:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker network create parse_dashboard_network
|
||||
```
|
||||
|
||||
2. Start a MongoDB database in the network generated:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d --name mongodb --net=parse_dashboard_network bitnami/mongodb
|
||||
```
|
||||
|
||||
@@ -68,13 +68,13 @@ If you want to run the application manually instead of using docker-compose, the
|
||||
|
||||
3. Start a Parse Server container:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -p 1337:1337 --name parse --net=parse_dashboard_network bitnami/parse
|
||||
```
|
||||
|
||||
4. Run the Parse Dashboard container:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -p 80:4040 --name parse-dashboard --net=parse_dashboard_network bitnami/parse-dashboard
|
||||
```
|
||||
|
||||
@@ -93,7 +93,7 @@ To avoid inadvertent removal of these volumes you can [mount host directories as
|
||||
### Mount host directories as data volumes with Docker Compose
|
||||
|
||||
This requires a minor change to the `docker-compose.yml` template previously shown:
|
||||
```
|
||||
```yaml
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
@@ -126,13 +126,13 @@ In this case you need to specify the directories to mount on the run command. Th
|
||||
|
||||
1. Create a network (if it does not exist):
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker network create parse_dashboard-tier
|
||||
```
|
||||
|
||||
2. Create a MongoDB container with host volume:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d --name mongodb \
|
||||
--net parse-dashboard-tier \
|
||||
--volume /path/to/mongodb-persistence:/bitnami/mongodb \
|
||||
@@ -143,7 +143,7 @@ In this case you need to specify the directories to mount on the run command. Th
|
||||
|
||||
3. Start a Parse Server container:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -name parse -p 1337:1337 \
|
||||
--net parse-dashboard-tier
|
||||
--volume /path/to/parse-persistence:/bitnami/parse \
|
||||
@@ -152,7 +152,7 @@ In this case you need to specify the directories to mount on the run command. Th
|
||||
|
||||
4. Run the Parse Dashboard container:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -p 80:4040 --name parse-dashboard -v /your/local/path/bitnami/parse_dashboard:/bitnami/parse-dashboard --network=parse_dashboard_network bitnami/parse-dashboard
|
||||
```
|
||||
|
||||
@@ -162,7 +162,7 @@ Bitnami provides up-to-date versions of Parse Dashboard, including security patc
|
||||
|
||||
1. Get the updated images:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker pull bitnami/parse-dashboard:latest
|
||||
```
|
||||
|
||||
@@ -188,7 +188,7 @@ $ docker pull bitnami/parse-dashboard:latest
|
||||
When you start the parse-dashboard image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. If you want to add a new environment variable:
|
||||
|
||||
* For docker-compose add the variable name and value under the application section:
|
||||
```
|
||||
```yaml
|
||||
application:
|
||||
image: bitnami/parse-dashboard:latest
|
||||
ports:
|
||||
@@ -203,7 +203,7 @@ application:
|
||||
|
||||
* For manual execution add a `-e` option with each variable and value:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -e PARSE_DASHBOARD_PASSWORD=my_password -p 80:4040 --name parse-dashboard -v /your/local/path/bitnami/parse_dashboard:/bitnami/parse-dashboard --network=parse_dashboard_network bitnami/parse-dashboard
|
||||
```
|
||||
|
||||
@@ -227,7 +227,7 @@ To backup your application data follow these steps:
|
||||
|
||||
2. Copy the Parse Dashboard data folder in the host:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker cp /your/local/path/bitnami:/bitnami/parse-dashboard
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user