You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-08-10 22:31:28 +02:00
update ghost
This commit is contained in:
@@ -7,9 +7,12 @@ ghost
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
ghost:
|
ghost:
|
||||||
image: ghost:alpine
|
image: ghost:alpine
|
||||||
|
container_name: ghost
|
||||||
ports:
|
ports:
|
||||||
- "2368:2368"
|
- "2368:2368"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -19,6 +22,21 @@ services:
|
|||||||
- database__client=sqlite3
|
- database__client=sqlite3
|
||||||
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
backup:
|
||||||
|
image: offen/docker-volume-backup
|
||||||
|
container_name: backup
|
||||||
|
environment:
|
||||||
|
- BACKUP_FILENAME=backup-ghost-%Y-%m-%dT%H-%M-%S.tar.gz
|
||||||
|
- BACKUP_PRUNING_PREFIX=backup-ghost-
|
||||||
|
- BACKUP_RETENTION_DAYS=30
|
||||||
|
volumes:
|
||||||
|
- ./data:/backup/ghost:ro
|
||||||
|
- ./backups:/archive
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
depends_on:
|
||||||
|
- ghost
|
||||||
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
## Up and Running
|
## Up and Running
|
||||||
@@ -26,6 +44,7 @@ services:
|
|||||||
```bash
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ curl https://blog.easypi.duckdns.org/ghost/
|
$ curl https://blog.easypi.duckdns.org/ghost/
|
||||||
|
$ docker-compose exec backup backup
|
||||||
```
|
```
|
||||||
|
|
||||||
## Setup SSL
|
## Setup SSL
|
||||||
|
@@ -1,7 +1,10 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
ghost:
|
ghost:
|
||||||
image: ghost:alpine
|
image: ghost:alpine
|
||||||
|
container_name: ghost
|
||||||
ports:
|
ports:
|
||||||
- "2368:2368"
|
- "2368:2368"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -11,3 +14,18 @@ services:
|
|||||||
- database__client=sqlite3
|
- database__client=sqlite3
|
||||||
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
backup:
|
||||||
|
image: offen/docker-volume-backup
|
||||||
|
container_name: backup
|
||||||
|
environment:
|
||||||
|
- BACKUP_FILENAME=backup-ghost-%Y-%m-%dT%H-%M-%S.tar.gz
|
||||||
|
- BACKUP_PRUNING_PREFIX=backup-ghost-
|
||||||
|
- BACKUP_RETENTION_DAYS=30
|
||||||
|
volumes:
|
||||||
|
- ./data:/backup/ghost:ro
|
||||||
|
- ./backups:/archive
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
depends_on:
|
||||||
|
- ghost
|
||||||
|
restart: unless-stopped
|
||||||
|
Reference in New Issue
Block a user