FMN: try to fix the sendria setup
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
435b71a695
commit
347658eef7
2 changed files with 12 additions and 2 deletions
|
@ -2,4 +2,9 @@
|
|||
# https://github.com/msztolcman/sendria/issues/17
|
||||
|
||||
FROM msztolcman/sendria:v2.2.2.0
|
||||
RUN chmod 0755 .local
|
||||
RUN chmod 0755 .local .local/lib/python*/site-packages/
|
||||
RUN mkdir -p .config/sendria
|
||||
RUN echo "[sendria]" > .config/sendria/config.toml
|
||||
RUN mkdir data
|
||||
ENV HOME=/home/sendria
|
||||
ENTRYPOINT [ "sendria", "--foreground", "--db=./data/mails.sqlite", "--smtp-ip=0.0.0.0", "--http-ip=0.0.0.0" ]
|
||||
|
|
|
@ -337,7 +337,9 @@ spec:
|
|||
ports:
|
||||
- containerPort: 1025
|
||||
- containerPort: 1080
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /home/sendria/data
|
||||
readinessProbe:
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 30
|
||||
|
@ -350,6 +352,9 @@ spec:
|
|||
httpGet:
|
||||
path: /
|
||||
port: 1080
|
||||
volumes:
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
triggers:
|
||||
- type: ConfigChange
|
||||
- type: ImageChange
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue