Skip to content
Snippets Groups Projects
Verified Commit 8786b595 authored by David Beniamine's avatar David Beniamine
Browse files

Mount log directories

parent c752ba6b
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ services: ...@@ -9,6 +9,7 @@ services:
- "spool_sympa:/var/spool/sympa" - "spool_sympa:/var/spool/sympa"
- "spool_nullmailer:/var/spool/nullmailer" - "spool_nullmailer:/var/spool/nullmailer"
- "lib_sympa:/var/lib/sympa" - "lib_sympa:/var/lib/sympa"
- "./log/sympa:/var/log/"
links: links:
- pgsql - pgsql
environment: environment:
...@@ -34,7 +35,7 @@ services: ...@@ -34,7 +35,7 @@ services:
build: ./docker/postfix build: ./docker/postfix
volumes: volumes:
- "./sympa/shared:/etc/sympa/shared" - "./sympa/shared:/etc/sympa/shared"
- "./postfix/log:/var/log/postfix" - "./log/postfix:/var/log/postfix"
- "spool_postfix:/var/spool/postfix" - "spool_postfix:/var/spool/postfix"
networks: networks:
- postfix - postfix
......
...@@ -86,5 +86,6 @@ if [ -n "$HOSTNAME" ]; then ...@@ -86,5 +86,6 @@ if [ -n "$HOSTNAME" ]; then
echo "$HOSTNAME" > /etc/mailname echo "$HOSTNAME" > /etc/mailname
fi fi
mkdir -p /var/log/supervisor/
# Launch all services # Launch all services
exec /usr/bin/supervisord exec /usr/bin/supervisord
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment