This repository contains a demo project created as part of my DevOps studies in the TechWorld with Nana – DevOps Bootcamp.
https://www.techworld-with-nana.com/devops-bootcamp
Demo Project: Deploy Nexus as Docker container
Technologies used: Docker, Nexus, DigitalOcean, Linux
Project Description:
- Create and Configure Droplet
- Set up and run Nexus as a Docker container
Recommended configuration:
- 8 GB RAM
- 4 CPUs
Update packages and install the required tools:
apt update
apt install net-tools
snap install dockerNote: Open port
8081in your DigitalOcean firewall (Networking → Firewalls) to access Nexus from a browser.
Navigate to Docker Hub and search for sonatype/nexus3, or go directly to the sonatype/nexus3 page.
A named volume ensures Nexus data persists across container restarts:
docker volume create --name nexus-datadocker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3Note: First startup can take 1–2 minutes. Access Nexus at
http://<droplet-ip>:8081.
Verify the container is running:
netstat -lpnt
docker psCheck which user is running inside the Nexus container:
docker exec -it nexus /bin/bash
whoami
exitInspect the Nexus volume:
docker volume ls
docker inspect nexus-dataUse the Mountpoint path from the inspect output to browse volume contents:
ls /var/snap/docker/common/var-lib-docker/volumes/nexus-data/_data
