---
title: "Set Up Nexus - The All-In-One Repository Manager In Just A Millisec"
date: 2021-01-22T16:29:50.000Z
author: Z.SHINCHVEN
tags: [Sonatype, Nexus, Repository Manager, Docker, docker-compose]
canonical: https://atlassc.net/2021/01/23/setup-nexus
---
Setting up a `Sonatype Nexus Repository Manager` via `docker-compose` is far easier than you can imagine.

## Make a docker-compose.yml file

```yml
version: "2"

services:
  nexus:
    restart: always
    image: sonatype/nexus3
    container_name: nexus3
    volumes:
      - "./nexus-data:/nexus-data"
    ports:
      - "8081:8081"
```

```bash
docker-compose up -d
```

## Grant permission to nexus-data directory

Docker deployment will fall by default, all you have to do is fix the directory's permission

```bash
chown -R 200 nexus-data
```
