# Installation on EC2 with AMI, adding a EBS volume

**URL:** <https://community.neo4j.com/t/installation-on-ec2-with-ami-adding-a-ebs-volume/22814>\
**Category:** Aura & Cloud\
**Created:** [August 3, 2020, 3:28pm UTC](https://community.neo4j.com/t/installation-on-ec2-with-ami-adding-a-ebs-volume/22814 "2020-08-03T15:28:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swearingendw](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/swearingendw/32/5056_2.png) [@swearingendw](https://community.neo4j.com/u/swearingendw)\
**Post date:** [August 3, 2020, 3:28pm UTC](https://community.neo4j.com/t/installation-on-ec2-with-ami-adding-a-ebs-volume/22814/1 "2020-08-03T15:28:25Z")

</div>

We just installed on EC2 but there is only 7G on the mount point. Is there anything special we need to know about adding a volume, does anyone have instructions on the best way to do this for Neo? Thanks

---

<div class="post-metadata">

**Author:** ![Joel](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/joel/32/17191_2.png) [@Joel](https://community.neo4j.com/u/Joel)\
**Post date:** [August 8, 2020, 2:56am UTC](https://community.neo4j.com/t/installation-on-ec2-with-ami-adding-a-ebs-volume/22814/2 "2020-08-08T02:56:00Z")

</div>

which directories and where to place them on the host is probably a personal preference that will vary. I'm running neo4j in a docker container as a specific user (not root)

```auto
echo "starting neo4j"
docker run \
  --user $(id -u):$(id -g) \
  --name "${CONTAINER}" \
  --detach \
  --restart unless-stopped \

```

so I place the db's under it's home directory (NEO\_GRAPH\_DIR="~/neo4j" in script below).

Over time I've chosen to to mount a few more that I did at first, some of these are for practical reasons (e.g. data and import) to load or persist data, others for debugging at some point, and I left them setup, this way those files (e.g. logs, conf) persist in host folders after the container is shutdown.

```auto
  --volume ${NEO_GRAPH_DIR}/data:/data \
  --volume ${NEO_GRAPH_DIR}/import:/import \
  --volume ${NEO_GRAPH_DIR}/plugins:/plugins \
  --volume ${NEO_GRAPH_DIR}/conf:/var/lib/neo4j/conf \
  --volume ${NEO_GRAPH_DIR}/logs:/logs \

```

---

<div class="post-metadata">

**Author:** ![swearingendw](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/swearingendw/32/5056_2.png) [@swearingendw](https://community.neo4j.com/u/swearingendw)\
**Post date:** [August 8, 2020, 11:53am UTC](https://community.neo4j.com/t/installation-on-ec2-with-ami-adding-a-ebs-volume/22814/3 "2020-08-08T11:53:35Z")

</div>

Thank you, very helpful!
