You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
164
164
#NODE_ENV: development
165
+
volumes:
166
+
- ghost:/var/lib/ghost/content
165
167
166
168
db:
167
169
image: mysql:8.0
168
170
restart: always
169
171
environment:
170
172
MYSQL_ROOT_PASSWORD: example
173
+
volumes:
174
+
- db:/var/lib/mysql
175
+
176
+
volumes:
177
+
ghost:
178
+
db:
171
179
```
172
180
173
-
[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/57f9907ee5bbeaede8c97f439b9c11bc1081dd75/ghost/stack.yml)
181
+
[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/45b7cc83c4763f5dc3501e1f7a2411eca1b16ce2/ghost/stack.yml)
174
182
175
183
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).
0 commit comments