Zuar WAF microservices run in Docker containers.
Docker provides the ability to package and run an application in a loosely isolated environment called a container.
They are orchestrated through Docker Compose.
Compose is a tool for defining and running multi-container Docker applications.
Configuring Docker
All of the Docker Compose configuration (services, networks, etc) is handle via a docker-compose.yaml
file.
The default location for the docker-compose.yaml
configuration file is the home directory for the user running Docker (e.g. /home/ubuntu/docker-compose.yaml
).
Learn more about docker-compose.
Starting and Stopping Docker
Zuar WAF microservices can be individually or collectively started and stopped with Docker Compose:
- Stop the Docker containers with
docker-compose down
. - Start the Docker containers with
docker-compose up
. - Start the Docker containers in the background
docker-compose up -d
. This is the standard way to run the Zuar WAF.
Run these commands in the same directory as the docker-compose.yaml
(e.g. /home/ubuntu/
).
Learn more about docker-compose down and docker-compose up.
Viewing Docker Logs
The logs for the Zuar WAF microservices can be viewed through Docker:
- View all logs for a container running in the background with
docker-compose logs -f
. - View the last 100 lines of the logs with
docker-compose logs -f --tail=100
. - View the
auth
container's logs withdocker-compose logs -f auth
.
Learn more about Docker logs and docker-compose logs.