The DataCap project provides Docker Compose deployment by downloading the 
    
        
            docker-compose.yml
        
    
         file, or using the following code for service deploy.
    
        
    
        
            
    
        
    
        
    
            
            
            
                
                
                    
            
        
        
    
        
            
    
        
    
        
    
            
            
            
                
                
                    
            
        
        
    
        
        
        
               
               
                   
            
                
        
    
        
    
        
            
    
        
After the above work is completed, use the following command to start the service. Must be executed in the directory containing the docker-compose.yml file
            
            
                
                
                    
            
        
        
    
        If you need to start in the background, use the following command
    
            
            
                
                
                    
            
        
        After successful startup, open 
    
        http://localhost:9096/
    
         in the browser to see the website.
    
        
    
        
            
    
        
To stop the service you need to use the following command
            
            
                
                
                    
            
        
        
        
        
        
            
        Simplified version
    
        
        Only some basic functions
    
        yaml
            
        
    
            version: '3.3'
services:
  app-mysql:
    image: mysql:latest
    environment:
      MYSQL_ROOT_PASSWORD: 12345678
      MYSQL_DATABASE: datacap
    ports:
      - "3306:3306"
    volumes:
      - ./configure/schema/datacap.sql:/docker-entrypoint-initdb.d/schema.sql
  app-datacap:
    image: devliveorg/datacap:latest
    restart: always
    ports:
      - "9099:9099"
    depends_on:
      - app-mysql
      - app-clickhouse
    volumes:
      - ./configure/docker/application.properties:/opt/app/datacap/configure/application.properties
                
        Advanced version
    
        
        This method includes the 
    
        
        dataset
    
         function
    yaml
            
        
    
            version: '3.3'
services:
  app-mysql:
    image: mysql:latest
    environment:
      MYSQL_ROOT_PASSWORD: 12345678
      MYSQL_DATABASE: datacap
    ports:
      - "13306:3306"
    volumes:
      - ./configure/schema/datacap.sql:/docker-entrypoint-initdb.d/schema.sql
      - mysql_data:/var/lib/mysql
  app-clickhouse:
    image: clickhouse/clickhouse-server:latest
    restart: always
    ports:
      - "8123:8123"
    environment:
      - CLICKHOUSE_DB=datacap
      - CLICKHOUSE_USER=default
      - CLICKHOUSE_PASSWORD=da39a3ee5e6b4b0d3255bfef95601890afd80709
    volumes:
      - clickhouse_data:/var/lib/clickhouse
      - clickhouse_logs:/var/log/clickhouse-server
  app-datacap:
    image: devliveorg/datacap:latest
    restart: always
    ports:
      - "9099:9096"
    depends_on:
      - app-mysql
      - app-clickhouse
    volumes:
      - ./configure/docker/application.properties:/opt/app/datacap/configure/application.properties
      - datacap_data:/opt/app/datacap/data
volumes:
  mysql_data:
  clickhouse_data:
  clickhouse_logs:
  datacap_data:
                Warning
                    
        
    
        You need to download multiple files at the same time:
    
        
    
        
    
        
    
        After the download is completed, place them in the specified directory, that is, 
    
        
            ./configure/docker/
    
         and 
    
        ./configure/schema/
    
        . If you need to customize the directory, you can modify the 
    
        mounted in the
    
        docker-compose.yml
    
         file. volumes
    
         can be configured.
    
                
        Start service
    
        After the above work is completed, use the following command to start the service. Must be executed in the directory containing the docker-compose.yml file
bash
            
        
    
            docker-compose up
                bash
            
        
    
            docker-compose up -d
                
        Out of service
    
        To stop the service you need to use the following command
bash
            
        
    
            docker-compose down
                
        
        贡献者