Skip to content
Snippets Groups Projects
Commit 1d725885 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye
Browse files

Add webmail

parent ebe9b688
No related branches found
No related tags found
No related merge requests found
version: "3.7"
networks:
mail:
name: pica-mail
......@@ -101,6 +99,26 @@ services:
tls-certs-monitor.action: restart
restart: unless-stopped
webmail:
image: registry.picasoft.net/webmail:827a3b87
build: webmail
container_name: webmail
command:
- "/opt/alps/alps"
- "-theme"
- "alps"
- "imap://mail.picasoft.net:143"
- "smtp://mail.picasoft.net:587"
networks:
- proxy
labels:
traefik.http.routers.webmail.entrypoints: websecure
traefik.http.routers.webmail.rule: "Host(`mail.picasoft.net`)"
traefik.http.routers.webmail.service: webmail
traefik.http.services.webmail.loadbalancer.server.port: 1323
traefik.enable: true
restart: unless-stopped
postfix-exporter:
image: registry.picasoft.net/postfix-exporter:a6f58e9
build: https://github.com/kumina/postfix_exporter.git#a6f58e9b2b2b4decc7e65c5a34b4fd53cd6665f1
......
FROM golang:alpine AS BUILDER
ARG ALPS_VERSION=827a3b874716257990d7f504d4d20941e9d070b7
RUN apk add --no-cache curl && \
curl -o alps.tar.gz -l https://git.sr.ht/~migadu/alps/archive/$ALPS_VERSION.tar.gz && \
mkdir -p /opt/alps /build-alps && \
tar xzf alps.tar.gz --strip-components 1 -C /build-alps && \
cd /build-alps && \
CGO_ENABLE=0 go build -ldflags='-s -w' ./cmd/alps && \
cp -r themes plugins alps /opt/alps
FROM alpine
COPY --from=BUILDER /opt/alps /opt/alps
WORKDIR /opt/alps
EXPOSE 1323
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment