Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions ghost/stack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.1'

services:

ghost:
Expand All @@ -20,6 +18,12 @@ services:
#NODE_ENV: development
volumes:
- ghost:/var/lib/ghost/content
depends_on:
db:
# Using service_healthy requires adding a healthcheck
# condition: service_healthy
condition: service_started
restart: true

db:
image: mysql:8.0
Expand All @@ -28,6 +32,10 @@ services:
MYSQL_ROOT_PASSWORD: example
volumes:
- db:/var/lib/mysql
# Basic healthcheck to use with the service_healthy condition above.
# healthcheck:
# test: ["CMD-SHELL", "mysql -u root -p$$MYSQL_ROOT_PASSWORD" ]
# interval: 5s

volumes:
ghost:
Expand Down
Loading