1. Offline installationhttps://github.com/docker/compose/releases Move files
Modify the file name
Grant execution permissions to docker-compose. By default, there is no execute permission.
Whether the test is successful
2. Online installationrun
Install a different version and modify the version number to 1.29.2. If you encounter curl problems, use pip to install
Without virtualenv implement
Grant execution permissions to docker-compose. By default, there is no execute permission. In /usr/local/bin
Whether the test is successful
3. Uninstall
Installed using pip
4. Define the yml file1. Download the nginx image
2. Write the docker-compose.yml file. Pay attention to the format of the YML file. version: '3' #version number services: #docker container nginx: #container name container_name: nginx-1 #customize the container name after startup restart: always #Set to always, indicating that this container should always restart when stopped image: nginx:latest #image name: version number ports: #startup port number - 4433:80 volumes: #Data volume, mapping files in the container to the server - ./conf.d:/etc/nginx/conf.d environment: #Environment configuration TZ: Asia/shanghai 3. Start. Under the yml file
This is the end of this article about docker-compose installation and yml file configuration. For more relevant docker-compose yml file configuration content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Vue codemirror realizes the effect of online code compiler
>>: MySQL executes commands for external sql script files
Table of contents Problem Description Scenario In...
If you are using the latest Ubuntu Server version...
#include <linux/moduleparam.h> 1. Module pa...
Click here to return to the 123WORDPRESS.COM HTML ...
MySQL (5.6 and below) parses json #json parsing f...
1. Function : Allows the parent component to inse...
Table of contents Overview Problem Description Ci...
【question】 The INSERT statement is one of the mos...
Table of contents Preface Prepare Implementation ...
Preface: In MySQL, the CONCAT() function is used ...
Table of contents 1. Variable Overview 1.1 Storag...
Preface Project release always requires packaging...
Query the current date SELECT CURRENT_DATE(); SEL...
<!--[if IE 6]> Only IE6 can recognize <![...
1. As mentioned above I saw this macro when I was...