Skip to content

Example project demonstrating a maven-based docker project configuration

License

Notifications You must be signed in to change notification settings

singlemusic/nginx-docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-docker-example

This is an example project demonstrating a maven-based project that builds a simple nginx docker image.

Building

This project includes the maven-wrapper so you only need the JDK installed to build.

To create the docker image run:

./mvnw clean install

Running

To start the nginx image that was built, run:

./mvnw docker:start

If you see an error about a missing network run:

docker network create --attachable local-network

alternatively, you can change the network defined in the pom.xml configuration to one that already exists on your system.

Navigate to http://localhost:8080 to see the page served up from the nginx container.

About

Example project demonstrating a maven-based docker project configuration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published