NGINX component for Places app. Proxies requests to Places UI.
- Places app instance or container
- App container has network alias placesapp (default)
This is the easiest deployment method, and it's done not here but in docker.places. It assembles the Docker network comprised of each Places container, relying on the Dockerfile and supporting files within each. Check it out.
I used this method when I was learning about Docker networks but before I leveraged Docker Compose.
We assume nginx.conf server includes conf.d/default.conf
- docker build ... { --build-arg PORT_ARG=port } { --build-arg name=value} ...
- docker run ... -p port:port ...
- docker network connect ...
See Dockerfile for other build-args and defaults
This method, the one I created first, is the most labor-intensive. It doesn't use Dockerfile at all, instead relying on you to first build a container from the standard nginx image
We assume nginx.conf server includes default.d/*
- Run build.sh (pre-set environment variables to avoid prompts)
- Run deploy.sh
- Browse to http://host.port/places/