-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.4 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
43
44
45
46
47
48
49
50
51
52
services:
traefik:
image: "traefik:v3.6.1"
restart: always
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- traefik
hostname: traefik
container_name: traefik
mailpit:
# mailcatcher and mailhog are no more maintained
networks:
- traefik
image: axllent/mailpit
container_name: mailpit
restart: always
volumes:
- maildata:/data
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
# in your server_environnment_files module
# you have to set in your `dev` env for every project
# `mailpit` as host
# `1025` as port
- "traefik.http.routers.mailpit.service=mailpit"
- "traefik.http.routers.mailpit.rule=Host(`mail.localhost`)"
- "traefik.http.services.mailpit.loadbalancer.server.port=8025"
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
kwkhtmltopdf:
restart: always
image: ghcr.io/acsone/kwkhtmltopdf:0.12.5-latest
networks:
- traefik
networks:
traefik:
name: traefik
volumes:
maildata: