-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (58 loc) · 2.09 KB
/
docker-compose.yaml
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
name: webdev
services:
traefik:
container_name: ${COMPOSE_PROJECT_NAME}_traefik
image: traefik:v3.0
security_opt:
- no-new-privileges:true
networks:
- proxy
ports:
- '80:80'
- '443:443'
- '25:25'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- .docker/traefik/traefik.yml:/traefik.yml:ro
- .docker/traefik/config:/config:ro
- .docker/traefik/certs:/etc/certs:ro
labels:
traefik.enable: true
traefik.http.routers.traefik.entrypoints: https
traefik.http.routers.traefik.rule: Host(`${TRAEFIK_DOMAIN:-traefik.local}`)
traefik.http.routers.traefik.tls: true
traefik.http.routers.traefik.service: api@internal
mailpit:
container_name: ${COMPOSE_PROJECT_NAME}_mailpit
image: axllent/mailpit
volumes:
- mailpit:/data
environment:
TZ: ${TZ:-Europe/Paris}
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_BIND_ADDR: 0.0.0.0:25
MP_UI_BIND_ADDR: 0.0.0.0:80
MP_MAX_MESSAGES: 1000
MP_SMTP_AUTH_ACCEPT_ANY: true
MP_SMTP_AUTH_ALLOW_INSECURE: true
networks:
- proxy
labels:
traefik.enable: true
traefik.docker.network: proxy
# SMTP
traefik.tcp.services.smtp.loadbalancer.server.port: 25
traefik.tcp.routers.smtp.rule: HostSNI(`*`)
traefik.tcp.routers.smtp.entryPoints: smtp
traefik.tcp.routers.smtp.service: smtp
# HTTPS
traefik.http.services.mailpit.loadbalancer.server.port: 80
traefik.http.routers.mailpit.tls: true
traefik.http.routers.mailpit.rule: Host(`${MAILPIT_DOMAIN:-mail.local}`)
traefik.http.routers.mailpit.entrypoints: https
traefik.http.routers.mailpit.service: mailpit
networks:
proxy:
external: true
volumes:
mailpit: