Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added comments hints for healthcheck for ghost #2518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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