# Manage shared resources in Docker

This guide explains where Docker stores shared dictionaries and style guide files for self-hosted WProofreader.

Mount a persistent volume to `/dictionaries` so these resources survive container restarts and replacements.

## Directory structure

The Docker image stores shared resources under `/dictionaries`:

```
/dictionaries/
├── CustomDictionaries/
│   ├── CustDictConfig.xml
│   └── customDictionary1.txt
├── UserDictionaries/
│   └── user_dictionary_example
└── StyleGuide/
    └── client/
        ├── common/
        │   └── style_guide.csv
        └── en/
            └── example_style_guide.csv
```

## Persist data with a volume mount

Mount a host directory to `/dictionaries`:

```bash
docker run -v <host_directory_path>:/dictionaries <image_name>
```

This keeps dictionaries and style guide files after the container is recreated or updated.

## Resource locations

### Organization dictionaries

```
/dictionaries/CustomDictionaries/
/dictionaries/CustomDictionaries/CustDictConfig.xml
```

For file structure and management steps, see [Organization dictionary: Self-hosted management](/v6.12.0/features/custom-dictionary/organization-dictionary-self-hosted-management.md).

### User dictionaries

```
/dictionaries/UserDictionaries/
```

For file paths and admin-side management details, see [User dictionary: self-hosted management](/v6.12.0/features/custom-dictionary/user-dictionary-self-hosted-management.md).

### Style guide files

```
/dictionaries/StyleGuide/client/
```

For file structure and rule management, see [Style guide: Self-hosted](/v6.12.0/features/style-guide-builder/style-guide-self-hosted.md).


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/v6.12.0/deployment/installation/docker/manage-shared-resources-in-docker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
