Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mautic 4 stateless container #198

Open
wants to merge 9 commits into
base: mautic4
Choose a base branch
from

Commits on Aug 13, 2021

  1. Combine common files into single location

    An effort has been made in the past to combine any dockerfiles into a
    central location, but wasn't finalized (i assume due to docker not
    allowing includes from directories higher up).
    
    This completes this work, and documents how to run the Dockerfiles to
    produce working containers.
    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    4760c5a View commit details
    Browse the repository at this point in the history
  2. Allow additional config to be applied on startup.

    This changes the environment variable config so that any environment 
    variable changes are re-applied to local.php on container startup.  It 
    is part of some work I am doing to help make the mautic containers more 
    devops friendly.
    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    c97b64d View commit details
    Browse the repository at this point in the history
  3. Add default mysql port 3306

    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    b450107 View commit details
    Browse the repository at this point in the history
  4. Automatically install mautic on container start

    This commit will automatically perform a command line installation on
    first start, assuming mautic hasn't already been installed.
    
    You need to supply MAUTIC_URL, MAUTIC_ADMIN_EMAIL and
    MAUTIC_ADMIN_PASSWORD, or these will default to localhost,
    [email protected] and password.
    
    If you are installing on a non-https host, or have another reason why
    the install might need to be forced, you can set the
    `MAUTIC_INSTALL_FORCE` environment variable to force this install.
    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    26dac48 View commit details
    Browse the repository at this point in the history
  5. Initial work to allow for updates by changing out software

    clear cache, apply migrations and grab iplookup database on startup
    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    f732c0c View commit details
    Browse the repository at this point in the history
  6. Remove old mautic2 files

    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    a3954da View commit details
    Browse the repository at this point in the history
  7. Add ability to disable automatically running migrations

    We currently apply all migrations at startup - this is not needed for
    some users who are only running small parts of mautic.  Add an
    environment variable that can be set to disable this behaviour.
    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    443fe33 View commit details
    Browse the repository at this point in the history
  8. Update mautic4 container to be largely stateless

    This update makes a few changes:
    
    - Moves `local.php`, `cache`, `logs`, `media` and `spool` into a volume 
    at `/data`
    - Makes sure the above exist and are owned by www-data on startup
    - Drops mautic into /var/www/html and removes the copy on initial 
    bringup
    thinkl33t committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    e1ecffd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    811488b View commit details
    Browse the repository at this point in the history