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

Config and log file mounts

parent 8786b595
Branches
No related tags found
No related merge requests found
...@@ -62,7 +62,26 @@ Example of a `sympa_transport` file, for each domain you have Sympa providing ma ...@@ -62,7 +62,26 @@ Example of a `sympa_transport` file, for each domain you have Sympa providing ma
In this example, the variables `SYMPA_DOMAIN` and `POSTFIX_VIRTUAL_DOMAINS` should be `example.com` In this example, the variables `SYMPA_DOMAIN` and `POSTFIX_VIRTUAL_DOMAINS` should be `example.com`
## Configuration ## Volumes and configurations
You can add and modify files in `etc` directory, do not forget to restart the container afterwards ### Bind volumes (configuration)
| Local Path | Container | Container path | Comment |
|------------------------|-------------------|---------------------|----------------------------------------|
| `./sympa/sympa` | sympa | `/etc/sympa` | Sympa configuration directory |
| `./sympa/syslog` | sympa | `/etc/syslog.d` | Syslog config directory |
| `./log/sympa` | sympa | `/var/log` | All logs |
| `./sympa/sympa/shared` | sympa and postfix | `/etc/sympa/shared` | Shared config between sympa and posfix |
| `./postfix/rsyslog` | postfix | `/etc/rsyslog.d1` | Rsyslog config directory |
| `./log/postfix` | postfix | `/var/log/postfix` | Mail logs |
### Named volumes (data persistance only)
| Name | Container | Container path | Comment |
|------------------|-----------|-----------------------|-------------------------------|
| spool_sympa | sympa | /var/spool/sympa | spool mails on sympa |
| spool_nullmailer | sympa | /var/spool/nullmailer | spool mails on sympa outgoing |
| lib_sympa | sympa | /var/lib/sympa | |
| spool_postfix | postfix | /var/spool/postfix | spool mails on postfix |
...@@ -5,7 +5,8 @@ services: ...@@ -5,7 +5,8 @@ services:
build: ./docker/sympa build: ./docker/sympa
restart: always restart: always
volumes: volumes:
- "./sympa:/etc/sympa" - "./sympa/sympa:/etc/sympa"
- "./sympa/syslog:/etc/syslog.d/"
- "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"
...@@ -34,7 +35,8 @@ services: ...@@ -34,7 +35,8 @@ services:
postfix: postfix:
build: ./docker/postfix build: ./docker/postfix
volumes: volumes:
- "./sympa/shared:/etc/sympa/shared" - "./sympa/sympa/shared:/etc/sympa/shared"
- "./postfix/rsyslog:/etc/rsyslog.d1/"
- "./log/postfix:/var/log/postfix" - "./log/postfix:/var/log/postfix"
- "spool_postfix:/var/spool/postfix" - "spool_postfix:/var/spool/postfix"
networks: networks:
......
...@@ -9,4 +9,6 @@ RUN apt-get update -q -q && \ ...@@ -9,4 +9,6 @@ RUN apt-get update -q -q && \
cp /etc/postfix/main.cf /etc/postfix/main.cf.orig && \ cp /etc/postfix/main.cf /etc/postfix/main.cf.orig && \
cp /etc/postfix/master.cf /etc/postfix/master.cf.orig cp /etc/postfix/master.cf /etc/postfix/master.cf.orig
RUN echo '$IncludeConfig /etc/rsyslog.d1/*.conf' >> /etc/rsyslog.conf1
COPY ./etc /etc COPY ./etc /etc
...@@ -2,9 +2,7 @@ FROM debian:buster ...@@ -2,9 +2,7 @@ FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get -y upgrade RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
RUN apt-get -y install \
apache2 \ apache2 \
inetutils-syslogd \ inetutils-syslogd \
libapache2-mod-fcgid \ libapache2-mod-fcgid \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment