> For the complete documentation index, see [llms.txt](https://docs.syntho.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.syntho.ai/deploy-syntho/deploy-syntho-using-docker/operations.md).

# Operations

Use this page for day-to-day operations on a Docker Compose deployment.

### Common operations

#### Start

```bash
docker compose up -d
```

#### Stop

```bash
docker compose down
```

{% hint style="warning" %}
`docker compose down` does not remove named volumes by default.

Avoid `docker compose down -v` unless you intend to delete persistent data, including the embedded PostgreSQL data and Redis queues and unarchived job logs.
{% endhint %}

#### Restart

```bash
docker compose restart
```

#### Check status

```bash
docker compose ps
```

### Redis health and capacity

Inspect the bundled Redis service:

```bash
docker compose exec queue redis-cli INFO persistence
docker compose exec queue redis-cli INFO memory
docker compose exec queue df -h /data
```

Check that `aof_enabled` is `1` and `aof_last_write_status` and `aof_last_bgrewrite_status` are `ok`. `aof_rewrite_in_progress:1` can be normal while a rewrite is running. Monitor available disk space, memory usage, and application errors reporting rejected Redis writes or failed log archival.

With `noeviction`, reaching `REDIS_MAXMEMORY` causes write errors rather than silently discarding keys. Increase the memory budget and container limit together when needed, preserving rewrite headroom. If disk space is low, expand the host storage; do not delete AOF files to free space.

After editing Redis command or resource settings in `.env`, apply them with:

```bash
docker compose up -d queue
```

This may recreate Redis and briefly interrupt queue access. Plan the change for a maintenance window and reuse the existing volume. `docker compose restart` alone does not apply changed environment or container configuration.

### Logs

#### View logs

```bash
docker compose logs -f
```

#### Save logs

```bash
docker compose logs --no-color > syntho.log
```

<details>

<summary>Log sharing</summary>

Logs can contain hostnames, workspace names, and operational details.

Share logs only via approved channels or directly with Syntho Support.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.syntho.ai/deploy-syntho/deploy-syntho-using-docker/operations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
