added traefik to webapp

This commit is contained in:
andreas
2022-07-31 17:43:38 +00:00
parent 0aab815e49
commit 799fb5ecad
3 changed files with 29 additions and 1 deletions

27
webapp/docker-compose.yml Normal file
View File

@@ -0,0 +1,27 @@
version: '1'
services:
webapp:
image: webapp:latest
container_name: webapp
env_file: .env
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.webapp.rule=Host(`mail.$MAIL_DOMAIN`)
- traefik.http.routers.webapp.entrypoints=web-secure
- traefik.http.routers.webapp.tls=true
- traefik.http.routers.webapp.tls.certResolver=default
# - traefik.http.routers.webapp.tls.options=strongcipher@file
# - traefik.http.services.webapp.loadbalancer.server.port=80
networks:
- kopano
- traefik
volumes:
- z-push:/var/lib/z-push
networks:
- kopano:
external: true
- traefik:
external: true
volumes:
- z-push: