1- # itk-version: 3.1.0
2- version : " 3"
3-
1+ # itk-version: 3.2.1
42networks :
53 frontend :
64 external : true
@@ -31,8 +29,8 @@ services:
3129 environment :
3230 - PHP_XDEBUG_MODE=${PHP_XDEBUG_MODE:-off}
3331 - PHP_MAX_EXECUTION_TIME=30
34- - PHP_MEMORY_LIMIT=512M
35- # Depending on the setup you may have to remove --read-envelope-from from msmtp (cf. https://marlam.de/msmtp/msmtp.html) or use SMTP to send mail
32+ - PHP_MEMORY_LIMIT=256M
33+ # Depending on the setup, you may have to remove --read-envelope-from from msmtp (cf. https://marlam.de/msmtp/msmtp.html) or use SMTP to send mail
3634 - PHP_SENDMAIL_PATH=/usr/bin/msmtp --host=mail --port=1025 --read-recipients --read-envelope-from
3735 - DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
3836 - COMPOSER_VERSION=2
@@ -52,12 +50,31 @@ services:
5250 ports :
5351 - ' 8080'
5452 volumes :
55- - ./.docker/vhost.conf :/etc/nginx/conf.d/default.conf :ro
53+ - ./.docker/templates :/etc/nginx/templates :ro
5654 - .:/app
55+ environment :
56+ NGINX_FPM_SERVICE : ${COMPOSE_PROJECT_NAME}-phpfpm-1:9000
57+ NGINX_WEB_ROOT : /app/public
58+ NGINX_PORT : 8080
59+ NGINX_MAX_BODY_SIZE : 5M
5760 labels :
5861 - " traefik.enable=true"
5962 - " traefik.docker.network=frontend"
6063 - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
61- # HTTPS config - uncomment to enable redirect from :80 to :443
62- # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
63- # - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
64+ # HTTPS config - uncomment to enable redirect from :80 to :443
65+ # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
66+ # - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
67+
68+ mail :
69+ image : axllent/mailpit
70+ networks :
71+ - app
72+ - frontend
73+ ports :
74+ - " 1025"
75+ - " 8025"
76+ labels :
77+ - " traefik.enable=true"
78+ - " traefik.docker.network=frontend"
79+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}mail.rule=Host(`mail-${COMPOSE_DOMAIN}`)"
80+ - " traefik.http.services.${COMPOSE_PROJECT_NAME}mail.loadbalancer.server.port=8025"
0 commit comments