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://user.example.com \
-e NEXT_PUBLIC_API_URL=https://api.example.com \
-e [email protected] \
-e NEXT_PUBLIC_DEFAULT_USER_PASSWORD=password123 \
--name ppanel-user-web \
ppanel/ppanel-user-web:latest
Deploying with Docker Compose
Create a docker-compose.yml
file with the following content:
version: '3'
services:
ppanel-user-web:
image: ppanel/ppanel-user-web:latest
ports:
- '3000:3000'
environment:
NEXT_PUBLIC_DEFAULT_LANGUAGE: en-US
NEXT_PUBLIC_SITE_URL: https://user.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