> For the complete documentation index, see [llms.txt](https://docs.wproofreader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wproofreader.com/deployment/installation/docker/manage-shared-resources-in-docker.md).

# 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](/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](/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](/features/style-guide-builder/style-guide-self-hosted.md).
