Example day-to-day usage of Navy

Now that you've got a hello world Navy set up, here's some examples of what you might want to do on a day-to-day basis.

Viewing the status of all your running services

You can view all of your services for a Navy by running:

$ navy ps

navy ps output

Temporarily using a different version/tag of a service locally

Navy allows you to swap out the tag being used for the Docker image temporarily. This can be done with:

$ navy use-tag my-awesome-webapp custom-tag

It will now be using custom-tag, and will show on navy status and navy ps.

To reset back to the default tag defined in the Docker Compose config, run:

$ navy reset-tag my-awesome-webapp

Streaming logs for a service

Navy is very similar to Docker Compose when it comes to streaming logs:

$ navy logs my-awesome-webapp

Run multiple instances of your environment in parallel

See working with multiple Navies.

Working on a service locally

See working with Navy's development mode.