This commit is contained in:
parent
61db06d56e
commit
59f652e8ff
@ -37,5 +37,9 @@ Modification des labels pour traefik
|
|||||||
docker compose logs -f
|
docker compose logs -f
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
~~~bash
|
||||||
|
docker exec -i mailpit-app ./mailpit sendmail < ./email.txt
|
||||||
|
~~~
|
||||||
|
|
||||||
# Buy me a coffe
|
# Buy me a coffe
|
||||||
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
@ -2,41 +2,46 @@
|
|||||||
networks:
|
networks:
|
||||||
traefik_front_network:
|
traefik_front_network:
|
||||||
external: true
|
external: true
|
||||||
back_network_:
|
back_network_mailpit:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
attachable: true
|
attachable: true
|
||||||
|
|
||||||
#### SERVICES
|
#### SERVICES
|
||||||
services:
|
services:
|
||||||
### hello_world
|
### mailpit
|
||||||
hello_world:
|
services:
|
||||||
container_name: gitea-app
|
mailpit:
|
||||||
hostname: gitea-app
|
container_name: mailpit-app
|
||||||
image: hello-world
|
hostname: mailpit-app
|
||||||
environment:
|
image: axllent/mailpit:latest
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
|
||||||
# - back_network_gitea
|
|
||||||
- traefik_front_network
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
ports:
|
||||||
|
- 1025:1025
|
||||||
|
networks:
|
||||||
|
- traefik_front_network
|
||||||
|
environment:
|
||||||
|
MP_MAX_MESSAGES: 5000
|
||||||
|
TZ: Europe/Paris
|
||||||
|
# MP_UI_AUTH_FILE: /data/authfile
|
||||||
|
MP_DATABASE: /data/mailpit.db
|
||||||
|
MP_SMTP_AUTH_ACCEPT_ANY: 1
|
||||||
|
MP_SMTP_AUTH_ALLOW_INSECURE: 1
|
||||||
labels:
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik_front_network"
|
- "traefik.docker.network=traefik_front_network"
|
||||||
# HTTP
|
# HTTP
|
||||||
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
|
- "traefik.http.routers.mailpit-http.rule=Host(`mailpit.tips-of-mine.com`)"
|
||||||
- "traefik.http.routers.hello-world-http.entrypoints=http"
|
- "traefik.http.routers.mailpit-http.entrypoints=http"
|
||||||
- "traefik.http.routers.hello-world-http.priority=49"
|
- "traefik.http.routers.mailpit-http.priority=49"
|
||||||
# HTTPS
|
# HTTPS
|
||||||
- "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)"
|
- "traefik.http.routers.mailpit-https.rule=Host(`mailpit.tips-of-mine.com`)"
|
||||||
- "traefik.http.routers.hello-world-https.entrypoints=https"
|
- "traefik.http.routers.mailpit-https.entrypoints=https"
|
||||||
- "traefik.http.routers.hello-world-https.tls=true"
|
- "traefik.http.routers.mailpit-https.tls=true"
|
||||||
- "traefik.http.routers.hello-world-https.priority=50"
|
- "traefik.http.routers.mailpit-https.priority=50"
|
||||||
- "traefik.http.routers.gitea.service=gitea-https-service"
|
- "traefik.http.routers.mailpit.service=mailpit-https-service"
|
||||||
# Middleware
|
# Middleware
|
||||||
# Service
|
# Service
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000"
|
- "traefik.http.services.mailpit-https-service.loadbalancer.server.port=8025"
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
|
Loading…
x
Reference in New Issue
Block a user