You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-23 22:04:47 +02:00
Option to send logs to journald or syslog
This commit is contained in:
@@ -120,6 +120,12 @@ WEBSITE=https://mailu.io
|
|||||||
# Advanced settings
|
# Advanced settings
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
|
# Log driver for front service. Possible values:
|
||||||
|
# json-file (default)
|
||||||
|
# journald (On systemd platforms, useful for Fail2Ban integration)
|
||||||
|
# syslog (Non systemd platforms, Fail2Ban integration. Disables `docker-compose log` for front!)
|
||||||
|
LOG_DRIVER=json-file
|
||||||
|
|
||||||
# Docker-compose project name, this will prepended to containers names.
|
# Docker-compose project name, this will prepended to containers names.
|
||||||
COMPOSE_PROJECT_NAME=mailu
|
COMPOSE_PROJECT_NAME=mailu
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ services:
|
|||||||
image: mailu/nginx:$VERSION
|
image: mailu/nginx:$VERSION
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
logging:
|
||||||
|
driver: $LOG_DRIVER
|
||||||
ports:
|
ports:
|
||||||
- "$BIND_ADDRESS4:80:80"
|
- "$BIND_ADDRESS4:80:80"
|
||||||
- "$BIND_ADDRESS4:443:443"
|
- "$BIND_ADDRESS4:443:443"
|
||||||
|
|||||||
@@ -120,6 +120,12 @@ WEBSITE=https://mailu.io
|
|||||||
# Advanced settings
|
# Advanced settings
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
|
# Log driver for front service. Possible values:
|
||||||
|
# json-file (default)
|
||||||
|
# journald (On systemd platforms, useful for Fail2Ban integration)
|
||||||
|
# syslog (Non systemd platforms, Fail2Ban integration. Disables `docker-compose log` for front!)
|
||||||
|
LOG_DRIVER=json-file
|
||||||
|
|
||||||
# Docker-compose project name, this will prepended to containers names.
|
# Docker-compose project name, this will prepended to containers names.
|
||||||
#COMPOSE_PROJECT_NAME=mailu
|
#COMPOSE_PROJECT_NAME=mailu
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ services:
|
|||||||
image: $DOCKER_ORG/nginx:$VERSION
|
image: $DOCKER_ORG/nginx:$VERSION
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
env_file: $PWD/.env
|
env_file: $PWD/.env
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
ports:
|
ports:
|
||||||
- "$BIND_ADDRESS4:80:80"
|
- "$BIND_ADDRESS4:80:80"
|
||||||
- "$BIND_ADDRESS4:443:443"
|
- "$BIND_ADDRESS4:443:443"
|
||||||
|
|||||||
Reference in New Issue
Block a user