The application consists of a docker-compose of
- flask api server
- nginx
and a script docker_tail.py to generate the docker log file
The install script invoked by user_data
- installs packages like iptables and docker
- sets firewall rules to disallow all incoming traffic other than 22 and 80
- installs a systemd service for the project and enables it
The systemd service
- invokes docker-compose
- invokes the docker_tail script