Personal learning series - installation and use of docker compose
Docker Compose is a docker tool used to define and run complex applications Using Docker Compose eliminates the need for shell scripts to start containers. (configured through docker-compose.yml)
Installation of Docker Compose
Github source
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname ...
Posted by Rhiknow on Wed, 20 Nov 2019 10:22:37 -0800
ElasticStack series, Chapter 1
I. Introduction to Elastic Stack
ElasticStack currently consists of four parts:
Elastic search: core storage and retrieval engine
Kibana: Data Visualization
Logstash: high throughput data processing engine
Beats: collect data
ElasticSearch: Based on Java, it is an open-source distributed search engine, featuring: distributed, zero ...
Posted by Vibralux on Wed, 20 Nov 2019 00:52:21 -0800
Spring boot integration RabbitMQ (dead letter queue)
introduce
Dead letter queue: the queue in which messages are not consumed in time and messages are not consumed in time has the following reasons:1. A message is rejected (basic.reject/ basic.nack) and request = false2. The queue reaches the maximum length3. Message TTL expired
scene
1. Enter the initial queue in hours, wait for 30 minutes, an ...
Posted by dubrubru on Tue, 19 Nov 2019 13:36:16 -0800
logback log file location dynamic specification
Reference resources: https://stackoverflow.com/questions/19518843/logback-configuration-via-jvm-argument
logback related configuration, where ${log ﹣ home} is the environment variable. When java starts the application, it can set its address dynamically by specifying java - dlog ﹣ home = "path".
<?xml version="1.0" encoding="UT ...
Posted by fizzwizz on Tue, 19 Nov 2019 13:27:35 -0800
How to gracefully stop the spring boot service
Preface
Often the pronoun for "stop service" is violence, regardless of the consequences, because when a forced stop occurs, it doesn't matter if there are any running threads in it.
It happens that recently, because of the auto scalinng in AWS, unknown friends can interpret it as AWS can automatically expand or shrink our servers, wh ...
Posted by scopley on Sun, 17 Nov 2019 18:35:32 -0800
Ubuntu Compile Install HAprox+Keepalived+MySQL Load High Availability Architecture (combined with Docker container configuration)
System environment: Ubuntu 16.04 (Docker container)
Architecture environment:
Keepalived/HAproxy MASTER: 172.17.0.4
Keepalived/HAproxy BACKUP: 172.17.0.6
MySQL MASTER: 172.17.0.2
MySQL SLAVE: 172.17.0.3
HAproxy version: haproxy-2.0.8.tar.gz
Keepalived version: keepalived-2.0.19.tar.gz
1. Install HAproxy (both MASTER/BACKUP)
1. Go to the offic ...
Posted by kujtim on Sun, 17 Nov 2019 05:41:06 -0800
K8s for data persistence
Preface
In all virtualization solutions, data persistence is a problem that we need to be very concerned about, such as docker, k8s is no exception. In k8s, there is a concept of data volume.
k8s data volume mainly solves the following two problems:
Data persistence: usually, when a container is running, the files written to its file system ...
Posted by Mr. Tech on Sat, 16 Nov 2019 12:28:22 -0800
Docker packages nodejs project and database
To read this article, you must know the basic docker. This article only provides ideas and part of the code, not responsible for teaching
All orders must be handled carefully! look before you leap
command
Stop all running containers
docker stop $(docker ps -a -q)
Delete all containers
docker rm $(docker ps -a -q)
Using docker compose to start t ...
Posted by dreamwest on Sat, 16 Nov 2019 08:40:37 -0800
Docker compose deploy Vue+SpringBoot front and back end separation project
I. Preface
This article will deploy the front-end Vue project to Nginx through docker compose, and run the back-end spring boot project
Basic server environment:
CentOS7.3
Dokcer
MySQL
II. Docker compose deployment of Vue+SpringBoot front and back end separation project
The overall configuration structure of the project does not affect the st ...
Posted by Tomcat13 on Thu, 14 Nov 2019 19:28:45 -0800
Spring Boot configuration - Consul configuration center
▶ Spring Boot dependency and configuration
Maven dependence
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RE ...
Posted by bbmak on Wed, 13 Nov 2019 10:31:26 -0800