Skip to content

Commit

Permalink
Configure test SMTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
aashwin-rvvup committed May 17, 2024
1 parent a5b7fec commit a1a1631
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ services:
- '443:8443'
environment:
- BITNAMI_DEBUG=true
- MAGENTO_HOST=localhost
- MAGENTO_DATABASE_HOST=mariadb
- MAGENTO_DATABASE_PORT_NUMBER=3306
- MAGENTO_DATABASE_USER=bn_magento
Expand All @@ -31,6 +30,8 @@ services:
- RVVUP_PLUGIN_VERSION=$RVVUP_PLUGIN_VERSION
- MAGENTO_REPO_PUBLIC_KEY=$MAGENTO_REPO_PUBLIC_KEY
- MAGENTO_REPO_PRIVATE_KEY=$MAGENTO_REPO_PRIVATE_KEY
- MAGENTO_SMTP_HOST=mailpit
- MAGENTO_SMTP_PORT=1025
build:
context: .
dockerfile: Dockerfile
Expand All @@ -39,10 +40,16 @@ services:
depends_on:
- mariadb
- elasticsearch
- mailpit
elasticsearch:
image: docker.io/bitnami/elasticsearch:7
volumes:
- 'elasticsearch_data:/bitnami/elasticsearch/data'
mailpit:
image: docker.io/axllent/mailpit:v1.18
ports:
- '1025:1025'
- '8025:8025'
volumes:
data_mariadb:
driver: local
Expand Down
7 changes: 7 additions & 0 deletions docker/scripts/configure-base-store.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ bin/magento config:set currency/options/base GBP
bin/magento config:set currency/options/default GBP
bin/magento config:set general/locale/timezone Europe/London
bin/magento config:set general/locale/code en_GB

echo "Configuring SMTP settings to point to $MAGENTO_SMTP_HOST:$MAGENTO_SMTP_PORT"
bin/magento config:set system/smtp/disable 0
bin/magento config:set system/smtp/transport smtp
bin/magento config:set system/smtp/host $MAGENTO_SMTP_HOST
bin/magento config:set system/smtp/port $MAGENTO_SMTP_PORT

bin/magento sampledata:deploy

0 comments on commit a1a1631

Please sign in to comment.