-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 877 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 877 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
version: "3.3"
services:
updatejson:
image: ghcr.io/minecrafthopper/modmail
restart: always
environment:
MM_TOKEN: ${TOKEN}
MM_MAIN_SERVER_ID: ${SERVER_ID}
MM_INBOX_SERVER_ID: ${SERVER_ID}
MM_LOG_CHANNEL_ID: ${LOG_CHANNEL_ID}
MM_CATEGORY_AUTOMATION__NEW_THREAD: ${CATEGORY_ID}
MM_DB_TYPE: sqlite
MM_SQLITEOPTIONS__FILENAME: /db/database.db
MM_URL: "https://${HOST}"
volumes:
- "dbdata:/db"
deploy:
placement:
constraints:
- "node.role==manager"
labels:
- "traefik.enable=true"
- "traefik.http.routers.modmail.rule=Host(`${HOST}`)"
- "traefik.http.routers.modmail.entrypoints=websecure"
- "traefik.http.routers.modmail.tls.certresolver=myresolver"
- "traefik.http.services.modmail.loadbalancer.server.port=8890"
volumes:
dbdata: