Simplify application management and align with other docker applications

The notion of application "instances" is dropped in favor of a simpler,
single-instance approach. Default values are provided for all configuration
variables so allow the app to run without additional manual configuration.

A health check and auto-heal script are added to automatically restart the
application in case it becomes unavailable during operation.
This commit is contained in:
2024-03-25 09:34:34 -07:00
parent 6c59b1ab76
commit 9cbefc841f
14 changed files with 189 additions and 211 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
# COPY my.cnf /etc/mysql/my.cnf
# COPY mysql-init.sh /var/www/html/.docker/mysql/mysql-init.sh
FROM php:8.2-fpm-alpine
# Install necessary packages and cleanup
@@ -49,4 +48,4 @@ RUN chmod +x /var/www/html/start_up.sh
# Define the entry point and expose port 80, 3306
ENTRYPOINT ["/bin/sh", "/var/www/html/start_up.sh"]
EXPOSE 80 3306
EXPOSE 80 3306