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

Add healthcheck commands to docker-compose.yml #9143

Merged
merged 1 commit into from
Dec 28, 2018

Commits on Oct 29, 2018

  1. Add healthcheck commands to docker-compose.yml

    This will allow Docker to be automatically check the health of services.
    
    Docker won't do anything other than showing the state in the output of
    "docker-compose ps" by default, but some management tools may watch for
    container health events.
    
    Here's what my local instance looks like right now:
    
              Name                        Command                  State                     Ports
    -------------------------------------------------------------------------------------------------------------
    mastodon_db_1              docker-entrypoint.sh postgres    Up (healthy)
    mastodon_es_1              /usr/local/bin/docker-entr ...   Up (healthy)
    mastodon_redis_1           docker-entrypoint.sh redis ...   Up (healthy)
    mastodon_redis_cache_1     docker-entrypoint.sh redis ...   Up (healthy)
    mastodon_sidekiq_1         /sbin/tini -- bundle exec  ...   Up             3000/tcp, 4000/tcp
    mastodon_streaming_1       /sbin/tini -- yarn start         Up (healthy)   3000/tcp, 127.0.0.1:4000->4000/tcp
    mastodon_web_1             /sbin/tini -- bash -c rm - ...   Up (healthy)   127.0.0.1:3000->3000/tcp, 4000/tcp
    BenLubar committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    ab8e16f View commit details
    Browse the repository at this point in the history