Floating Server
...
Deployment Methods
Docker

Installation Steps

1min

Deploying the Floating Server with Docker provides a flexible way to manage the server in isolated containers.

Below are the steps to deploy the Floating Server using Docker.

  1. Download the Docker Image: Pull the Docker image from Docker Hub:
    • docker pull censedata/floating-server:latest
  2. Create a Docker Network and Redis Volume: To ensure smooth communication between Redis and the Floating Server, set up a Docker network and volume:
    • docker network create fs-network
    • docker volume create redis
  3. Run Redis in a Docker Container: Run Redis to serve as the database for the Floating Server:
    • docker run -d --net fs-network --name redis -p 6379:6379 -v redis:/data redis/redis-stack-server:latest
  4. Create a Configuration File Docker requires a config.yaml file for the server to operate. Place the config.yaml file in the directory where you will run the Docker container. For more details on configuration options, visit the Configuration File section.
  5. Run the Floating Server in Docker Launch the Floating Server by mounting the configuration file in the container:
    • docker run -d --net fs-network --name floating-server -p 8080:8080 -v $PWD/config.yaml:/opt/server/config/config.yaml censedata/floating-server:latest



Updated 13 Sep 2024
Doc contributor
Did this page help you?