-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
mailtrain.yml
64 lines (58 loc) · 1.7 KB
/
mailtrain.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
# DOMAIN=example.com docker stack deploy -c mailtrain.yml mailtrain
services:
mailtrain:
image: mailtrain/mailtrain:${VERSION:-latest}
environment:
- MYSQL_HOST=mariadb
- MYSQL_DATABASE=mailtrain
- MYSQL_USER=mailtrain
- MYSQL_PASSWORD=myp@ssw0rd
- URL_BASE_PUBLIC=${SCHEME:-https}://${DOMAIN:-mailtrain.localhost}
- URL_BASE_SANDBOX=${SCHEME:-https}://${DOMAIN:-mailtrain.localhost}
- URL_BASE_TRUSTED=${SCHEME:-https}://${DOMAIN:-mailtrain.localhost}
- WWW_PROXY=true
volumes:
- ${VOLUME_PATH}data:/app/server/files
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.mailtrain-${NUMBER:-1}.rule=Host(`${DOMAIN:-mailtrain.localhost}`)
- traefik.http.routers.mailtrain-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.mailtrain-${NUMBER:-1}.service=mailtrain-${NUMBER:-1}
- traefik.http.routers.mailtrain-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.mailtrain-${NUMBER:-1}.loadbalancer.server.port=3000
networks:
- traefik
- internal
mariadb:
image: mariadb:10.5.9
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=mailtrain
- MYSQL_USER=mailtrain
- MYSQL_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}mysql:/var/lib/mysql
networks:
- internal
redis:
image: redis:6-alpine
networks:
- internal
mongo:
image: mongo:4-xenial
volumes:
- ${VOLUME_PATH}mongo:/data/db
networks:
- internal
volumes:
data:
mysql:
mongo:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net