mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 23:38:32 +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 Ghost. You can use the following docker compose template:
|
||||
|
||||
```
|
||||
```yaml
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
@@ -45,13 +45,13 @@ If you want to run the application manually instead of using docker-compose, the
|
||||
|
||||
1. Create a new network for the application and the database:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker network create ghost_network
|
||||
```
|
||||
|
||||
2. Start a MariaDB database in the network generated:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d --name mariadb --net=ghost_network bitnami/mariadb
|
||||
```
|
||||
|
||||
@@ -59,7 +59,7 @@ If you want to run the application manually instead of using docker-compose, the
|
||||
|
||||
3. Run the Ghost container:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -p 80:2368 --name ghost --net=ghost_network bitnami/ghost
|
||||
```
|
||||
|
||||
@@ -105,13 +105,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 ghost-tier
|
||||
```
|
||||
|
||||
2. Create a MariaDB container with host volume:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d --name mariadb \
|
||||
--net ghost-tier \
|
||||
--volume /path/to/mariadb-persistence:/bitnami/mariadb \
|
||||
@@ -122,7 +122,7 @@ In this case you need to specify the directories to mount on the run command. Th
|
||||
|
||||
3. Create the Ghost container with host volumes:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d --name ghost -p 80:2368 \
|
||||
--net ghost-tier \
|
||||
--volume /path/to/ghost-persistence:/bitnami/ghost \
|
||||
@@ -135,7 +135,7 @@ Bitnami provides up-to-date versions of MariaDB and Ghost, including security pa
|
||||
|
||||
1. Get the updated images:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker pull bitnami/ghost:latest
|
||||
```
|
||||
|
||||
@@ -161,7 +161,7 @@ Bitnami provides up-to-date versions of MariaDB and Ghost, including security pa
|
||||
When you start the ghost 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/ghost:latest
|
||||
ports:
|
||||
@@ -172,7 +172,7 @@ application:
|
||||
|
||||
* For manual execution add a `-e` option with each variable and value:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -e GHOST_PASSWORD=my_password -p 80:2368 --name ghost -v /your/local/path/bitnami/ghost:/bitnami/ghost --network=ghost_network bitnami/ghost
|
||||
```
|
||||
|
||||
@@ -199,7 +199,7 @@ This would be an example of SMTP configuration using a GMail account:
|
||||
|
||||
* docker-compose:
|
||||
|
||||
```
|
||||
```yaml
|
||||
application:
|
||||
image: bitnami/ghost:latest
|
||||
ports:
|
||||
@@ -213,7 +213,7 @@ This would be an example of SMTP configuration using a GMail account:
|
||||
|
||||
* For manual execution:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker run -d -e SMTP_HOST=smtp.gmail.com -e SMTP_SERVICE=GMail -e SMTP_USER=your_email@gmail.com -e SMTP_PASSWORD=your_password -p 80:2368 --name ghost -v /your/local/path/bitnami/ghost:/bitnami/ghost --network=ghost_network bitnami/ghost
|
||||
```
|
||||
|
||||
@@ -228,7 +228,7 @@ To backup your application data follow these steps:
|
||||
|
||||
2. Copy the Ghost data folder in the host:
|
||||
|
||||
```
|
||||
```bash
|
||||
$ docker cp /your/local/path/bitnami:/bitnami/ghost
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user