Scenes
Compose installed on Docker-Compose Introduction and Ubuntu Server:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100902301
Docker Compose basic use - use Compose to start Tomcat as an example:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100904080
Docker Compose deployment project into the container - based mall project of Tomcat and mysql (with source code and sql download):
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100941366
Compose the basis of the basic operation achieved in the above, the structures implemented using Docker Compose Nexus.
Nexus
Nexus is Maven PW, the remote Maven repository, the default is a central warehouse, some of the components can not be downloaded from the center, such as internal project also deployed to the PW, so that other dependent projects.
Note:
Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.
achieve
Step by step from scratch to build Ubuntu Server server, modify the data source, install Docker, configure the mirror accelerator, Compose deployment Gitlab services:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/101077527
Referring to the above blog to build a good environment.
Nexus also need to deploy the service at least more than 2G of memory, so when we create a new virtual machine or cloning to remember to modify its memory.
First, we find Docker warehouse Nexus3
Then pull the mirror copy command.
Open the virtual machine and use XShell connection.
Mirrored pull nexus3
docker pull sonatype/nexus3
After pulling the success, we follow the specifications / usr / local / under the new docker / nexus, and the new docker-compose.yml
yml configuration file code
version: '3' services: nexus: restart: always image: sonatype/nexus3 container_name: nexus3 ports: - 8081:8081 volumes: - /usr/local/docker/nexus/nexus-data:/nexus-data
Exit and save
Then start nexus
docker-compose up
Open your browser and enter:
ip: port number is configured in the above yml profile.