mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-11-30 08:59:40 +02:00
Add data containers to fix permission issues
This commit is contained in:
parent
d6e0c46b9a
commit
7c9f312f0f
8
data/Dockerfiles/data-container-dkim/Dockerfile
Normal file
8
data/Dockerfiles/data-container-dkim/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM debian:jessie
|
||||
|
||||
RUN mkdir -p /data/dkim/keys \
|
||||
&& mkdir -p /data/dkim/txt \
|
||||
&& chown -R 33:33 /data/dkim
|
||||
VOLUME /data/dkim
|
||||
USER www-data
|
||||
CMD ["echo", "Data container for dkim keys"]
|
10
data/Dockerfiles/data-container-vmail/Dockerfile
Normal file
10
data/Dockerfiles/data-container-vmail/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM debian:jessie
|
||||
|
||||
RUN groupadd -g 5000 vmail \
|
||||
&& useradd -g vmail -u 5000 vmail -d /var/vmail
|
||||
|
||||
RUN mkdir -p /var/vmail \
|
||||
&& chown -R 5000:5000 /var/vmail
|
||||
VOLUME /var/vmail
|
||||
USER vmail
|
||||
CMD ["echo", "Data container for mail"]
|
Loading…
Reference in New Issue
Block a user