- A simple Spring Boot application with MySQL and NGINX running inside Docker containers
- Docker CE
- Docker
- Java
- Spring Boot
- MySQL
- NGINX
- Maven
- Run command
docker-compose up
- Access to http://localhost/
Docker Compose with Spring Boot, MySQL and NGINX
Home Page: https://hellokoding.com/docker-compose-with-spring-boot-mysql-nginx/
License: MIT License
docker-compose up
[root@localhost test]# docker-compose up
Creating network "test_default" with the default driver
Building app
Step 1/1 : FROM maven:3.5-jdk-8
---> 15577192293a
Successfully built 15577192293a
WARNING: Image for service app was built because it did not already exist. To rebuild this image you must use docker-compose build
or docker-compose up --build
.
Creating some-nginx ... done
Creating some-mysql ... done
Creating test_app_1 ... done
Attaching to some-nginx, some-mysql, test_app_1
some-mysql | [Entrypoint] MySQL Docker Image 5.7.22-1.1.5
some-mysql | [Entrypoint] Initializing database
app_1 | Can not write to /root/.m2/copy_reference_file.log. Wrong volume permissions? Carrying on ...
app_1 | [ERROR] Could not create local repository at /root/.m2/repository -> [Help 1]
app_1 | [ERROR]
app_1 | [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
app_1 | [ERROR] Re-run Maven using the -X switch to enable full debug logging.
app_1 | [ERROR]
app_1 | [ERROR] For more information about the errors and possible solutions, please read the following articles:
app_1 | [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException
some-mysql | [Entrypoint] Database initialized
^CGracefully stopping... (press Ctrl+C again to force)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.