# Set up Specify Asset Server to use an existing attachments directory

**URL:** <https://speciforum.org/t/set-up-specify-asset-server-to-use-an-existing-attachments-directory/1076>\
**Category:** Configuration & Installation\
**Tags:** Specify-7, Members-only\
**Created:** [May 11, 2022, 5:00am UTC](https://speciforum.org/t/set-up-specify-asset-server-to-use-an-existing-attachments-directory/1076 "2022-05-11T05:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [May 11, 2022, 5:00am UTC](https://speciforum.org/t/set-up-specify-asset-server-to-use-an-existing-attachments-directory/1076/1 "2022-05-11T05:00:00Z")

</div>

> ⚠ These are technical instructions for users who use Docker to deploy Specify 7

Mount the directory as a volume in the asset server container`/home/specify/attachments/` - into this directory inside the container

In that directory, web asset server expects the following two directories -

> <https://github.com/specify/web-asset-server/blob/676249b6b42eba0761b1cdfd676c98cb8f436f80/settings.py#L56-L58>

The `all-in-one` has this config for asset server:

```yaml
  asset-server:
    restart: unless-stopped
    image: specifyconsortium/specify-asset-service
    init: true
    volumes:
      - "attachments:/home/specify/attachments"
    environment:
      - SERVER_NAME=host.docker.internal
      - SERVER_PORT=80
      - ATTACHMENT_KEY=your asset server access key
      - DEBUG_MODE=false

```

Where `attachments:` in ` - "attachments:/home/specify/attachments"` is a docker volume

Defined at line 10 in the `docker-compose.yml`:

```yaml
volumes:
  attachments: # the asset-servers attachment files

```

instead, can replace ` - "attachments:/home/specify/attachments"` with i.e ` - "/some/dir/on/my/system:/home/specify/attachments"`  
and then remove the ` attachments: # the asset-servers attachment files` line
