Dockerized deployment#

Atoti applications can be deployed inside Docker containers. An example Dockerfile can be found in the project template. It uses multi-stage builds to minimize the size of the final image.

Logging#

When deploying applications inside Docker containers, especially with managed services, it is common practice to write the application’s logs to the container’s STDOUT and STDERR. This lets the hosting service used to deploy the containers manage log collection. On AWS for example, the AWS log driver can be used to forward the container’s logs to CloudWatch.

Use atoti.LoggingConfig.destination to configure the application to write its logs to STDOUT.