2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

update ghost

This commit is contained in:
kev
2017-04-30 23:36:09 +08:00
parent 101ffe5866
commit 6c227b4e02
7 changed files with 54 additions and 28 deletions

View File

@@ -7,9 +7,11 @@ ghost
```yaml
ghost:
image: ghost
image: ghost:alpine
ports:
- "127.0.0.1:2368:2368"
volumes:
- ./data:/var/lib/ghost
restart: always
```
@@ -17,11 +19,9 @@ ghost:
```bash
$ docker-compose up -d
$ docker-compose exec ghost bash
>>> cd /var/lib/ghost/
>>> sed -i 's@http://localhost:2368@https://blog.easypi.info@' config.js
>>> grep -rIl 'googleapis' core content | xargs sed -i 's/googleapis/useso/g'
>>> exit
$ cd data
$ sed -i 's@http://localhost:2368@https://blog.easypi.info@' config.js
$ grep -rIl 'googleapis' core content | xargs sed -i 's/googleapis/useso/g'
$ docker-compose restart
```

View File

@@ -5,7 +5,7 @@
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV GHOST_VER 0.11.3
ENV GHOST_VER 0.11.8
ENV GHOST_URL https://ghost.org/archives/ghost-$GHOST_VER.zip
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost

View File

@@ -1,5 +1,7 @@
ghost:
image: easypi/ghost-arm
ports:
- "2368:2368"
- "127.0.0.1:2368:2368"
volumes:
- ./data:/var/lib/ghost
restart: always

View File

@@ -1,5 +1,7 @@
ghost:
image: ghost
image: ghost:alpine
ports:
- "127.0.0.1:2368:2368"
volumes:
- ./data:/var/lib/ghost
restart: always