|
@@ -144,7 +144,7 @@ version: '3.1'
|
|
|
services:
|
|
services:
|
|
|
|
|
|
|
|
ghost:
|
|
ghost:
|
|
|
- image: ghost:1-alpine
|
|
|
|
|
|
|
+ image: ghost:3-alpine
|
|
|
restart: always
|
|
restart: always
|
|
|
ports:
|
|
ports:
|
|
|
- 8080:2368
|
|
- 8080:2368
|
|
@@ -155,6 +155,8 @@ services:
|
|
|
database__connection__user: root
|
|
database__connection__user: root
|
|
|
database__connection__password: example
|
|
database__connection__password: example
|
|
|
database__connection__database: ghost
|
|
database__connection__database: ghost
|
|
|
|
|
+ # this url value is just an example, and is likely wrong for your environment!
|
|
|
|
|
+ url: http://localhost:8080
|
|
|
|
|
|
|
|
db:
|
|
db:
|
|
|
image: mysql:5.7
|
|
image: mysql:5.7
|
|
@@ -163,7 +165,7 @@ services:
|
|
|
MYSQL_ROOT_PASSWORD: example
|
|
MYSQL_ROOT_PASSWORD: example
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/e24f39cddf21560cf0a24f149059ff23640b0f16/ghost/stack.yml)
|
|
|
|
|
|
|
+[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/c57e666ff4299ee6e801a9843b7f39eebfd8f2da/ghost/stack.yml)
|
|
|
|
|
|
|
|
Run `docker stack deploy -c stack.yml ghost` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080`, `http://localhost:8080`, or `http://host-ip:8080` (as appropriate).
|
|
Run `docker stack deploy -c stack.yml ghost` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080`, `http://localhost:8080`, or `http://host-ip:8080` (as appropriate).
|
|
|
|
|
|