# Docker uses root partition, might need more storage space

**URL:** https://meta.discourse.org/t/docker-uses-root-partition-might-need-more-storage-space/69298
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [September 3, 2017, 8:23pm UTC](https://meta.discourse.org/t/docker-uses-root-partition-might-need-more-storage-space/69298 "2017-09-03T20:23:49Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 13, 2017, 5:07am UTC](https://meta.discourse.org/t/docker-uses-root-partition-might-need-more-storage-space/69298/8 "2017-10-13T05:07:09Z")

</div>

I did this for free codecamp:

```plaintext
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log
  - volume:
      host: /var/postgres_data
      guest: /shared/postgres_data

```

Basically I keep `/var/postgres_data` in root and then mount `/var/discourse/shared/` on the second volume, additionally I put docker containers in `/var/discourse/shared/docker`

There are many ways of skinning this, just keep postgres\_data on the fastest drive and you should be good.

---

_[View the full topic](https://meta.discourse.org/t/docker-uses-root-partition-might-need-more-storage-space/69298)._
