-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 982 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file starts the application in a docker container with davmail
# to not use davmail change spamfilter command or directly use dockerfile
# other settings can be directly changed in spamfilter.ini
# ---
# if you want to use online training attach to the spamfilter service using:
# docker attach <name from docker ps>
# type 'train' to train with latest mails in your folders
version: "3.7"
services:
davmail:
image: jberrenberg/davmail
volumes:
# local properties : container properties
- "./davmail.properties:/etc/davmail/davmail.properties"
networks:
- shared
# smtp & imap port if needed
# ports:
# - "1025:1025"
# - "993:993"
spamfilter:
# container defined in dockerfile
build: .
# connect to davmail
tty: true
stdin_open: true
command: "python __main__.py --ssl false --port 1143 --host davmail"
networks:
- shared
networks:
shared:
driver: bridge