Installation
System Requirements:
- Git
- Docker, Docker-compose
- OpenSSL (To generate password and secret key)
Automatic Installation
bash <(curl -s https://raw.githubusercontent.com/ZingerLittleBee/server_bee-backend/main/script/setup.sh)
The script will automatically install the server for you after ask fewer questions.
Manual Installation (docker compose)
Clone the repository
git clone https://github.com/ZingerLittleBee/server_bee-backend.git
cd server_bee-backend/docker
Set up the environment
cp .env.example .env
Run the docker-compose
docker-compose up -d
If not need the status of local server, you can remove the service of web
in docker-compose.yml
file.
And then, Enjoy it!🎉
Link your sqlite database
version: '3'
services:
# Omit other services
hub:
image: zingerbee/serverhub:latest
container_name: serverhub
restart: unless-stopped
volumes:
- /replace_your_path/serverhub.db:/app/serverhub.db
environment:
- DATABASE_URL=${DATABASE_URL}
- MONGODB_URI=${MONGODB_URI}
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL}
- SERVER_JWT_SECRET=${SERVER_JWT_SECRET}
- SALT_ROUNDS=${SALT_ROUNDS}
depends_on:
- mongo
# Omit other services