# tech-repo **Repository Path**: hongbin1/tech-repo ## Basic Information - **Project Name**: tech-repo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-27 - **Last Updated**: 2025-12-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dev Compose Development Environment Service Configuration This project provides a Docker Compose configuration for quickly setting up a local development environment, supporting multiple commonly used services to facilitate rapid deployment and testing of applications. ## Service List - MySQL - Redis - ZooKeeper - InfluxDB - RustFS ## Usage Steps ### 1. Start Services Ensure you have installed [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/). In the `dev-compose/` directory, run the following command to start the services: ```bash docker-compose up -d ``` ### 2. Check Service Status Use the following command to view the status of running services: ```bash docker-compose ps ``` ### 3. Access Services #### MySQL Access - Default username: `root` - Default password: `root` - Port: `3306` Connect to MySQL using the following command: ```bash mysql -h 127.0.0.1 -u root -p ``` #### Redis Access - Port: `6379` Connect to Redis using the following command: ```bash redis-cli -h 127.0.0.1 ``` #### ZooKeeper Access - Port: `2181` Connect using `zkCli.sh`: ```bash zkCli.sh -server 127.0.0.1:2181 ``` #### InfluxDB Access - Web Interface: [http://localhost:8086](http://localhost:8086) - Port: `8086` #### RustFS Access - Web Interface: [http://localhost:8000](http://localhost:8000) - API Port: `8000` ### 4. Stop Services ```bash docker-compose down ``` ### 5. Stop Services and Remove Data Volumes ```bash docker-compose down -v ``` ## Data Persistence By default, MySQL and Redis data are persisted to local volumes, ensuring data remains intact even if containers are deleted. ## Notes - Ensure that the relevant ports are not already in use. - To modify default configurations, edit the `docker-compose.yml` file. - After changing passwords, update corresponding configuration files accordingly. ## Frequently Asked Questions ### Service Fails to Start Check if Docker is running properly and ensure that the required ports are not occupied. ### Port Already in Use Terminate the process using the port or modify the port mappings in `docker-compose.yml`. ### Forgotten Password If you forget the MySQL or Redis password, delete the corresponding data volume and restart the services. --- This project enables rapid setup of a development environment using Docker, ideal for local development and testing. For production deployment, adjust configurations according to your specific requirements.