Docker Deployment
Tip
- Operating System: Ubuntu 20.04 LTS
- Server Requirements: Minimum 2 cores 4GB RAM, Recommended 4 cores 8GB RAM
Dependencies
Download
# Pull docker image
docker pull bytedesk/bytedesk:latest
Configuration
# Create configuration directory
mkdir -p /etc/bytedesk/config
# Copy configuration files
cp config/* /etc/bytedesk/config/
# Modify database configuration
vim /etc/bytedesk/config/application.yml
# Modify redis configuration
vim /etc/bytedesk/config/redis.yml
Start
# Start container
docker run -d \
--name bytedesk \
-p 9003:9003 \
-v /etc/bytedesk/config:/app/config \
-v /etc/bytedesk/logs:/app/logs \
bytedesk/bytedesk:latest
# View logs
docker logs -f bytedesk
Stop
# Stop container
docker stop bytedesk
# Remove container
docker rm bytedesk
Upgrade
# Pull latest image
docker pull bytedesk/bytedesk:latest
# Stop container
docker stop bytedesk
# Remove container
docker rm bytedesk
# Start new container
docker run -d \
--name bytedesk \
-p 9003:9003 \
-v /etc/bytedesk/config:/app/config \
-v /etc/bytedesk/logs:/app/logs \
bytedesk/bytedesk:latest