Simple example of using docker-compose
to configure nginx behind varnish
-
First, you must put your jar file in the same directory as where docker-compose.yml exists.
-
Change database address, port, user, and password in Dockerfile of backendb folder.
-
From the repo root, run:
docker-compose -p example up
The first time you run this, docker will need to download several images used by the services defined in docker-compose.yml.
Each service's image is built using it's respective Dockerfile
(e.g., nginx/Dockerfile).