Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
INFRA-107 – check in local changes used for in-browser install
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelLH committed Sep 1, 2023
1 parent af75b94 commit 6dcf17d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
10 changes: 10 additions & 0 deletions app/config/local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
$parameters = array (
'db_driver' => 'pdo_mysql',
'install_source' => 'Docker',
'db_port' => '3306',
'db_host' => 'mauticdb',
'db_name' => 'mautic',
'db_user' => 'root',
'db_password' => 'mysecret',
);
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
build:
context: .
dockerfile: Dockerfile
entrypoint: apache2-foreground
container_name: mautic
links:
- mauticdb
Expand All @@ -30,14 +31,11 @@ services:
ports:
- '8080:80'
environment:
- [email protected]
- MAUTIC_ADMIN_PASSWORD=localPass123
- MAUTIC_DB_HOST=mauticdb:3306 # makeconfig.php sets the required port but only when it's explicit after : here
- MAUTIC_DB_USER=root
- MAUTIC_DB_PASSWORD=mysecret
- MAUTIC_DB_NAME=mautic
- MAUTIC_ENV=dev
- MAUTIC_INSTALL_FORCE=true # Force auto-install despite URL being non-SSL
- MAUTIC_RUN_CRON_JOBS=true
- MAUTIC_URL=http://localhost:8080
networks:
Expand Down
10 changes: 3 additions & 7 deletions secrets_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
## Load the S3 secrets file contents into the environment variables
#export $(aws s3 cp s3://${SECRETS_BUCKET_NAME}/secrets - | grep -v '^#' | xargs)

# Call our copy of the Mautic entrypoint script then the e.g. start Apache CMD
# (argument to entrypoint).
# The one change in our entrypoint vs. that upstream as of 13/4/23 is the addition
# of a modified index.php which we copy at startup, so that we can change it after
# the normal auto install process completes. The purpose of that modified index.php
# is to fix infinite redirect loops when using an ALB with SSL.
/entrypoint.sh "$@"
echo "Starting Apache..."
# No args for now. Our base php:8.0 already turns on the `mautic` vhost.
apache2-foreground

0 comments on commit 6dcf17d

Please sign in to comment.