added apache2 and ssl config
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# syntax=docker/dockerfile:1.3-labs
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM alpine:latest
|
||||
# install apt packages
|
||||
ENV TZ Europe/Berlin
|
||||
@@ -9,10 +9,8 @@ ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.1.2/s6-
|
||||
RUN <<EOF
|
||||
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
||||
tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
|
||||
rm /tmp/s6-overlay*.tar.xz
|
||||
EOF
|
||||
COPY ./etc/s6-overlay /etc/s6-overlay
|
||||
COPY ./etc/postfix /etc/postfix
|
||||
# install kopano core
|
||||
WORKDIR /root
|
||||
EXPOSE 25
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/bash
|
||||
# docker login --username baloan --password 'yZBCUs5&@?:.'
|
||||
# docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www httpd
|
||||
export DOCKER_BUILDKIT=1
|
||||
# export DOCKER_BUILDKIT=1
|
||||
docker build -t postfix .
|
||||
# docker container prune -f
|
||||
# docker run -d --name postfix postfix
|
||||
# docker exec -it postfix bash
|
||||
# docker stop postfix
|
||||
# docker rm postfix
|
||||
docker run -d --name postfix -v/root/kopano/postfix/etc/postfix:/etc/postfix postfix
|
||||
docker logs -f postfix
|
||||
docker exec -it postfix sh
|
||||
|
||||
docker kill postfix
|
||||
docker rm postfix
|
||||
|
||||
@@ -7,7 +7,7 @@ services:
|
||||
networks:
|
||||
- kopano
|
||||
volumes:
|
||||
- ~/kopano/postfix/etc:/etc/postfix
|
||||
- ~/kopano/postfix/etc/postfix:/etc/postfix
|
||||
- spool:/var/spool/postfix
|
||||
networks:
|
||||
- kopano
|
||||
|
||||
@@ -55,3 +55,4 @@ recipient_delimiter = +
|
||||
inet_interfaces = all
|
||||
inet_protocols = all
|
||||
|
||||
maillog_file = /dev/stdout
|
||||
Reference in New Issue
Block a user