-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (42 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
42 lines (42 loc) · 1.12 KB
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
services:
snowmail:
restart: always
build:
context: .
image: truewinter/snowmail
ports:
- 8025:8025
volumes:
- ./data/plugins:/app/plugins
depends_on:
mongo:
condition: service_healthy
smtp:
condition: service_started
environment:
# Either modify the APP_SECRET and EMAIL_FROM here or in a .env file
- APP_SECRET=${APP_SECRET}
- EMAIL_FROM=${EMAIL_FROM}
- MONGO_DB=${MONGO_DB:-mongodb://mongo:27017}
- SMTP_HOST=${SMTP_HOST:-smtp}
env_file: ".env"
mongo:
image: mongo:7.0.8
restart: always
volumes:
- ./data/mongo:/data/db
# https://github.com/docker-library/mongo/pull/144
healthcheck:
test: ["CMD-SHELL", "mongosh --eval 'db.runCommand(\"ping\").ok' --quiet || exit 1"]
start_interval: 5s
start_period: 5s
smtp:
image: ixdotai/smtp:v0.5.2
restart: always
environment:
- MAILNAME=${MAILNAME}
- DKIM_KEY_PATH=/opt/dkim/rsa.private
# If you have Docker configured for IPv6, remove this
- DISABLE_IPV6=true
volumes:
- ./data/dkim:/opt/dkim:ro