3.1 KiB
Installation Guide
This document provides step-by-step instructions for installing Calminer on your system. Please follow the steps below to ensure a successful installation.
Deployment Options
Calminer can be deployed using Docker containers, which simplifies the installation process and ensures consistency across different environments. The recommended deployment option is to use Docker Compose to manage the multi-container setup.
Docker Installation
Prerequisites
Before you begin, ensure that you have the following prerequisites installed on your system:
- Docker
- Docker Compose
- Git
Steps
-
Clone the Repository
Open your terminal and run the following command to clone the Calminer repository:
git clone https://git.allucanget.biz/allucanget/calminer.git cd calminer -
Build and Start the Docker Containers
Run the following command to build and start the Docker containers:
docker compose up --buildThis command will build the Docker images and start the containers as defined in the
docker-compose.ymlfile. -
Access the Application
Once the containers are up and running, you can access the Calminer application by navigating to
http://localhost:3000in your web browser. If you are running the application on a remote server, replacelocalhostwith the server's IP address or domain name. -
Database Initialization
The first time you run the application, the database will be initialized automatically. Ensure that the database container is running and accessible.
-
Stopping the Application
To stop the application, run the following command in the terminal:
docker compose downThis command will stop and remove the containers, networks, and volumes created by Docker Compose.
Docker Configuration
The docker-compose.yml file contains the configuration for the Calminer application, including the services, networks, and volumes. You can customize the configuration as needed to suit your deployment environment.
Environment Variables
The application uses environment variables to configure various settings. You can set these variables in a .env file in the root directory of the project. Refer to the docker-compose.yml file for a list of available environment variables and their default values.
Volumes
The application uses Docker volumes to persist data. The following volumes are defined in the docker-compose.yml file:
calminer_data: Used to persist application data.calminer_db_data: Used to persist database data.
Ensure that these volumes are properly configured to avoid data loss during container restarts or removals.
Troubleshooting
If you encounter any issues during the installation or deployment process, refer to the following troubleshooting tips:
- Check the Docker and Docker Compose logs for error messages.
- Ensure that all prerequisites are installed and up to date.
- Verify that the ports used by the application are not blocked by firewalls or other applications.
- Consult the Calminer documentation and community forums for additional support.