OpenResty¶
This role deploys an OpenResty container via Docker Compose, validates its configuration, and restarts it on changes.
Description¶
Runs an OpenResty container in host network mode
Mounts Nginx configuration and Let’s Encrypt directories
Validates the OpenResty (Nginx) configuration before any restart
Restarts the container only if the configuration is valid
Overview¶
Loads the base Docker Compose setup
Adds the OpenResty service
Defines handlers to validate and restart the container
Triggers a restart on configuration changes