Skip to content

Commit

Permalink
Merge pull request #565 from pimcore/11.x-Docker-Comopse-update
Browse files Browse the repository at this point in the history
Add mailpit to docker, enabled in config, add docker settings to be consistent with EE
  • Loading branch information
alexz707 committed Apr 5, 2024
2 parents d3cb35e + 7bd873b commit d026d4f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ framework:
# handler_id: null

#### SYMFONY MAILER TRANSPORTS
# mailer:
# transports:
# main: smtp://user:pass@smtp.example.com:port
mailer:
transports:
main: smtp://user:pass@mailpit:1025
# pimcore_newsletter: smtp://user:pass@smtp.example.com:port

# pimcore_newsletter:
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ services:
redis:
image: redis:alpine
command: [ redis-server, --maxmemory, 128mb, --maxmemory-policy, volatile-lru, --save, '""' ]
volumes:
- pimcore-demo-redis-data:/data

db:
image: mariadb:10.11
Expand Down Expand Up @@ -35,6 +37,7 @@ services:
- db
volumes:
- .:/var/www/html
- pimcore-demo-tmp-storage:/tmp

supervisord:
#user: '1000:1000' # set to your uid:gid
Expand All @@ -48,5 +51,22 @@ services:
gotenberg:
image: gotenberg/gotenberg:8

mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- pimcore-demo-mailpit-data:/data
ports:
- 8025:8025
environment:
MP_MAX_MESSAGES: 5000
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1

volumes:
pimcore-demo-database:
pimcore-demo-redis-data:
pimcore-demo-tmp-storage:
pimcore-demo-mailpit-data:

0 comments on commit d026d4f

Please sign in to comment.