1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/ghost/docker-compose.yml
2022-02-11 15:57:55 +08:00

35 lines
913 B
YAML

version: "3.8"
services:
ghost:
image: ghost:alpine
ports:
- "2368:2368"
volumes:
- ./data:/var/lib/ghost/content
environment:
- url=https://blog.easypi.duckdns.org
- database__client=sqlite3
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
restart: unless-stopped
backup:
image: offen/docker-volume-backup
environment:
# AWS_BUCKET_NAME=backups
# AWS_S3_PATH=ghost
# AWS_ACCESS_KEY_ID=******
# AWS_SECRET_ACCESS_KEY=******
- BACKUP_FILENAME=backup-ghost-%Y-%m-%dT%H-%M-%S.tar.gz
- BACKUP_PRUNING_PREFIX=backup-ghost-
- BACKUP_LATEST_SYMLINK=backup-ghost-latest.tar.gz
- 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