How to Send User Activity Email with Cron Nginx and Docker Compose
Learn how to send an email from a Gmail account that contains user activity and errors from Nginx using Cron and Docker Compose. We will also learn about best practices when it comes to multiple processes in a Docker container, how Cron loads environment variables, and more.
👩💻 Download Code 👨💻
https://wittcode.com
🛜 Download My Chrome Extension 🛜
https://chromewebstore.google.com/detail/wittcepter/almcnacncageamimacljglnjcpjfogbj
💻 Compare Laptop Specs 💻
https://laptopspectable.com
🔴 Rare Pokemon Cards ⚪️
https://rarepokemoncards.com
👻 90s Nostalgia 👻
https://goosebumpsforsale.com
⌛ Timestamps ⌛
0:00 – Introduction
0:10 – Project Demonstration
0:42 – Multiple Processes in a Docker Container
1:08 – Environment Variable Setup
1:33 – Creating a Cron Job to Send an Email
3:49 – What is an App Password?
4:19 – Generating an App Password
4:50 – Creating the Cron Docker Image
6:42 – Creating the Nginx Docker Image
7:37 – Nginx Access and Error Logs
9:27 – Creating Cron Service with Docker Compose
10:24 – Running the Program
12:21 – Outro
by WittCode
linux smtp server