This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8026|Reply: 0

CentOS 7 Docker deploys PostgreSQL 9.6

[Copy link]
Posted on 11/21/2018 11:18:03 AM | | | |
Centos7 Docker installation and configuration in practice
https://www.itsvse.com/thread-5014-1-1.html
(Source: Architect_Programmer)

The CentOS 7 installation docker tutorial is as above.The PostgreSQL version installed in this article is 9.6

PostgreSQL is an advanced object-relational database management system

Image address:The hyperlink login is visible.

Pull image command:



Create containers using mirrors

Run the command to Docker by passing -e VAR=VALUE to identify the following environment variables that can be set during initialization.

POSTGRESQL_USER
The username of the PostgreSQL account you want to create

POSTGRESQL_PASSWORD
Password for user account

POSTGRESQL_DATABASE
Database name

POSTGRESQL_ADMIN_PASSWORD
Password for postgres admin account (optional)


PostgreSQLThe default port number is 5432



Since the PostgreSQL query management tool is not installed on this machine, the online web version of the database management tool is used, Alibaba Cloud's DMS function:The hyperlink login is visible.



The connection is successful, and it's over.




Previous:Deploy Kong API Gateway on CentOS 7
Next:Docker deployment kong-dashboard tutorial
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com