-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (80 loc) · 2.16 KB
/
docker-compose.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
x-env: &env
POSTGRES_DB: accounts
POSTGRES_USER: accounts
POSTGRES_PASSWORD: accounts
services:
backend:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "8087:8087"
volumes:
- ./.env:/app/.env
- ./src/thunderbird_accounts:/app/thunderbird_accounts
- ./static:/app/static
- ./templates:/app/templates
frontend:
build:
context: .
dockerfile: ./Dockerfile
command: npm run dev
ports:
- "5173:5173"
volumes:
- ./.env:/app/.env
- ./vite.config.mjs:/app/vite.config.mjs
- ./src/thunderbird_accounts:/app/thunderbird_accounts
- ./assets:/app/assets
- ./static:/app/static
- ./templates:/app/templates
postgres:
image: postgres:17
volumes:
- db:/var/lib/postgresql/data
ports:
- "5433:5432" # Note: host is exposed to 5433!
environment:
<<: *env
# set shared memory limit when using docker-compose
shm_size: 128mb
redis:
image: redis/redis-stack
volumes:
- cache:/data
ports:
- "6380:6379" # Redis exposed on port 6380
- "8071:8001" # Insights exposed on port 8071
#mailpit:
# image: axllent/mailpit
# environment:
# - MP_SMTP_AUTH_ALLOW_INSECURE=true
# ports:
# - "8026:8025" # Web UI on port 8026
# - "1026:1024" # SMTP on port 1026
stalwart:
image: stalwartlabs/mail-server:latest
volumes:
- ./mail:/opt/stalwart-mail
ports:
- "443:443"
- "8080:8080"
- "25:25"
- "587:587"
- "465:465"
- "143:143"
- "993:993"
- "4190:4190"
- "110:110"
- "995:995"
environment:
<<: *env
MAIL_QUERY_EMAILS: "SELECT address FROM mail_email WHERE name = $1 ORDER BY address ASC"
MAIL_QUERY_MEMBERS: "SELECT member_of FROM mail_groupmember WHERE name = $1"
MAIL_QUERY_NAME: "SELECT name, type, secret, description, quota FROM mail_account WHERE name = $1 AND active = true"
MAIL_QUERY_RECIPIENTS: "SELECT name FROM mail_email WHERE address = $1 ORDER BY name ASC"
MAIL_ADMIN_SECRET: "{plain}accounts"
MAIL_STALWART_PATH: "/opt/stalwart-mail"
volumes:
db: {}
cache: {}