DOCSAdmin SideDeployment with Docker

Installing Docker

Run the following command to install Docker:

curl -fsSL https://get.docker.com | bash

Starting Services with Docker

Run the following command to start the container:

docker run -d -p 3000:3000 \
  -e NEXT_PUBLIC_DEFAULT_LANGUAGE=en-US \
  -e NEXT_PUBLIC_SITE_URL=https://admin.example.com \
  -e NEXT_PUBLIC_API_URL=https://api.example.com \
  -e [email protected] \
  -e NEXT_PUBLIC_DEFAULT_USER_PASSWORD=password123 \
  --name ppanel-admin-web \
  ppanel/ppanel-admin-web:latest

Deploying with Docker Compose

Create a docker-compose.yml file with the following content:

version: '3'
 
services:
  ppanel-admin-web:
    image: ppanel/ppanel-admin-web:latest
    ports:
      - '3000:3000'
    environment:
      NEXT_PUBLIC_DEFAULT_LANGUAGE: en-US
      NEXT_PUBLIC_SITE_URL: https://admin.example.com
      NEXT_PUBLIC_API_URL: https://api.example.com
      NEXT_PUBLIC_DEFAULT_USER_EMAIL: [email protected]
      NEXT_PUBLIC_DEFAULT_USER_PASSWORD: password123

Start the service:

docker compose up -d