Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized-docs
Dieser Commit ist enthalten in:
Commit
6d33eae08b
2 geänderte Dateien mit 31 neuen und 12 gelöschten Zeilen
|
@ -212,14 +212,15 @@ services:
|
||||||
|
|
||||||
certdumper:
|
certdumper:
|
||||||
image: humenius/traefik-certs-dumper
|
image: humenius/traefik-certs-dumper
|
||||||
container_name: traefik_certdumper
|
command: --restart-containers ${COMPOSE_PROJECT_NAME}-postfix-mailcow-1,${COMPOSE_PROJECT_NAME}-nginx-mailcow-1,${COMPOSE_PROJECT_NAME}-dovecot-mailcow-1
|
||||||
network_mode: none
|
network_mode: none
|
||||||
volumes:
|
volumes:
|
||||||
# mounten Sie den Ordner, der Traefiks `acme.json' Datei enthält
|
# Binden Sie das Volume, das Traefiks `acme.json' Datei enthält, ein
|
||||||
# in diesem Fall wird Traefik von seinem eigenen docker compose in ../traefik gestartet
|
- acme:/traefik:ro
|
||||||
- ../traefik/data:/traefik:ro
|
|
||||||
# SSL-Ordner von mailcow einhängen
|
# SSL-Ordner von mailcow einhängen
|
||||||
- ./data/assets/ssl/:/output:rw
|
- ./data/assets/ssl/:/output:rw
|
||||||
|
# Binden Sie den Docker Socket ein, damit traefik-certs-dumper die Container neu starten kann
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
# Ă„ndern Sie dies nur, wenn Sie eine andere Domain fĂĽr Mailcows Web-Frontend verwenden als in der Standard-Konfiguration
|
# Ă„ndern Sie dies nur, wenn Sie eine andere Domain fĂĽr Mailcows Web-Frontend verwenden als in der Standard-Konfiguration
|
||||||
|
@ -228,6 +229,14 @@ services:
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
# Name des externen Netzwerks
|
||||||
|
name: traefik_web
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
acme:
|
||||||
|
external: true
|
||||||
|
# Name des externen Docker Volumes, welches Traefiks `acme.json' Datei enthält
|
||||||
|
name: traefik_acme
|
||||||
```
|
```
|
||||||
|
|
||||||
Starten Sie die neuen Container mit `docker compose up -d`.
|
Starten Sie die neuen Container mit `docker compose up -d`.
|
||||||
|
|
|
@ -192,7 +192,7 @@ version: '2.1'
|
||||||
services:
|
services:
|
||||||
nginx-mailcow:
|
nginx-mailcow:
|
||||||
networks:
|
networks:
|
||||||
# add Traefik's network
|
# Add Traefik's network
|
||||||
web:
|
web:
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
@ -214,14 +214,16 @@ services:
|
||||||
|
|
||||||
certdumper:
|
certdumper:
|
||||||
image: humenius/traefik-certs-dumper
|
image: humenius/traefik-certs-dumper
|
||||||
container_name: traefik_certdumper
|
command: --restart-containers ${COMPOSE_PROJECT_NAME}-postfix-mailcow-1,${COMPOSE_PROJECT_NAME}-nginx-mailcow-1,${COMPOSE_PROJECT_NAME}-dovecot-mailcow-1
|
||||||
network_mode: none
|
network_mode: none
|
||||||
volumes:
|
volumes:
|
||||||
# mount the folder which contains Traefik's `acme.json' file
|
# Mount the volume which contains Traefik's `acme.json' file
|
||||||
# in this case Traefik is started from its own docker compose in ../traefik
|
# Configure the external name in the volume definition
|
||||||
- ../traefik/data:/traefik:ro
|
- acme:/traefik:ro
|
||||||
# mount mailcow's SSL folder
|
# Mount mailcow's SSL folder
|
||||||
- ./data/assets/ssl/:/output:rw
|
- ./data/assets/ssl/:/output:rw
|
||||||
|
# Mount docker socket to restart containers
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
# only change this, if you're using another domain for mailcow's web frontend compared to the standard config
|
# only change this, if you're using another domain for mailcow's web frontend compared to the standard config
|
||||||
|
@ -230,6 +232,14 @@ services:
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
# Name of the external network
|
||||||
|
name: traefik_web
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
acme:
|
||||||
|
external: true
|
||||||
|
# Name of the external docker volume which contains Traefik's `acme.json' file
|
||||||
|
name: traefik_acme
|
||||||
```
|
```
|
||||||
|
|
||||||
Start the new containers with `docker compose up -d`.
|
Start the new containers with `docker compose up -d`.
|
||||||
|
|
Laden …
In neuem Issue referenzieren