Skip to content

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

  1. Open a browser and go to: Portainer
  2. Enter your credentials and click "Login".

Adding a New Environment

  1. Navigate to the "Environments" section.
  2. Click "Add environment".
  3. Select the connection type:
    • Docker (local or remote Docker API)
    • Kubernetes
    • Agent (if connecting an agent)
  4. Enter the node or API address and click "Connect". img.png img_1.png img_2.png

Adding a New Stack

  1. Go to the "Stacks" section.
  2. Click "Add stack".
  3. Enter the stack name.
  4. 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.yml file.
  5. After configuring, click "Deploy the stack". img_3.png img_4.png

Adding a New Agent

  1. Navigate to "Environments" and click "Add environment".
  2. Select "Agent".
  3. 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
  1. Enter the IP address of the server with the agent and click "Connect".

Viewing Containers

  1. Navigate to "Containers".
  2. Select the required container.
  3. Here you can:
    • Stop/start the container.
    • Restart the container.
    • Remove the container.
    • View resource usage.

img_5.png

Viewing Container Logs

  1. Open "Containers" and select the desired container.
  2. Go to the "Logs" tab.
  3. Choose the number of displayed lines and refresh the logs.

img_6.png

Connecting to a Container Console

  1. Open "Containers" and select the desired container.
  2. Go to the "Console" tab.
  3. Select the shell type (sh/bash).
  4. Click "Connect".
  5. You can now manage the container through the terminal.

img_7.png


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'