Nexus Installation and Configuration
Prerequisites
Portainer is deployed
Hetzner Portainer located on vm qcans-qcint
Portainer deployed with docker-compose:
version: '3.9'
services:
portainer:
image: portainer/portainer-ce:2.27.0
container_name: portainer
restart: always
ports:
- "8000:8000" # Portainer Agent (optional)
- "9443:9443" # HTTPS (recommended)
- "9000:9000" # HTTP (use only if HTTPS is not configured)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Access to Docker API
- portainer_data:/data # Portainer data storage
environment:
- TZ=Europe/Berlin # Set your time zone
volumes:
portainer_data:
Logging into Portainer
- Open a browser and go to: Portainer
- Enter your credentials and click "Login".
Adding a New Environment
- Navigate to the "Environments" section.
- Click "Add environment".
- Select the connection type:
- Docker (local or remote Docker API)
- Kubernetes
- Agent (if connecting an agent)
- Enter the node or API address and click "Connect".

Adding a New Stack
- Go to the "Stacks" section.
- Click "Add stack".
- Enter the stack name.
- Choose the source:
- Web editor – manually enter the Docker Compose configuration.
- Git repository – load from a Git repository.
- Upload file – upload a pre-made
docker-compose.ymlfile.
- After configuring, click "Deploy the stack".

Adding a New Agent
- Navigate to "Environments" and click "Add environment".
- Select "Agent".
- Install the agent on the remote server by running the following command:
docker run -d -p 9001:9001 --name portainer_agent \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
portainer/agent
- Enter the IP address of the server with the agent and click "Connect".
Viewing Containers
- Navigate to "Containers".
- Select the required container.
- Here you can:
- Stop/start the container.
- Restart the container.
- Remove the container.
- View resource usage.
Viewing Container Logs
- Open "Containers" and select the desired container.
- Go to the "Logs" tab.
- Choose the number of displayed lines and refresh the logs.
Connecting to a Container Console
- Open "Containers" and select the desired container.
- Go to the "Console" tab.
- Select the shell type (sh/bash).
- Click "Connect".
- You can now manage the container through the terminal.
This is a basic guide for working with Portainer. If you have any questions, contact the DevOps support team.
Changelog
| Date | Author | Message |
|---|---|---|
| 2026-03-06 | aresnikowa | qc-0: postediting |
| 2026-02-25 | aresnikowa | Merge remote-tracking branch 'origin/master' |


