---
title: Restart Single Container While Using Docker Compose
description: In this short article we'll take a look at the command that allows you to restart a single container while using Docker Compose.
date: 2020-07-23
tags: Docker, restart, docker-compose
source: https://brianchildress.co/blog/docker-restart-single-container-in-docker-compose
---

# Restart Single Container While Using Docker Compose

When you're running a set of containers with Docker Compose there are times that you need to restart just one of those containers. Let's say for example that you need to restart your NodeJS server to read in a new environment setting. You _could_ stop and restart the entire stack **OR** you could run this command:

_Find the container_

```sh
docker ps
```

```sh
docker container restart < container id >
```

This will restart the container, reading in new settings while maintaining all of the configurations from Docker Compose. For more information, here are the [Docker Docs](https://docs.docker.com/engine/reference/commandline/container_restart/)
