added core

This commit is contained in:
andreas
2023-04-01 20:44:25 +00:00
parent 543a183545
commit 5efba5e7b8
10 changed files with 112 additions and 42 deletions

View File

@@ -1,7 +1,28 @@
version: '3'
services:
core:
image: kopano
server:
image: core
depends_on:
- db
command: /usr/sbin/kopano-server
dagent:
image: core
depends_on:
- db
- server
command: /usr/sbin/kopano-dagent
spooler:
image: core
depends_on:
- db
- server
command: /usr/sbin/kopano-spooler
search:
image: core
depends_on:
- db
- server
command: /usr/sbin/kopano-search
postfix:
image: postfix
volumes:
@@ -10,16 +31,36 @@ services:
image: webapp
labels:
- traefik.enable=true
- traefik.http.routers.webapp.rule=Host(`$MAIL_DOMAIN`)
- traefik.http.routers.webapp.rule=Host(`$MAIL_DOMAIN`) && Path(`/webapp`)
- traefik.http.routers.webapp.tls=true
- traefik.http.routers.webapp.tls.certResolver=default
depends_on:
- server
networks:
- default
- traefik
z-push:
image: z-push
labels:
- traefik.enable=true
- traefik.http.routers.webapp.rule=Host(`$MAIL_DOMAIN`) && Path(`/Active-Sync-...`)
- traefik.http.routers.webapp.tls=true
- traefik.http.routers.webapp.tls.certResolver=default
volumes:
- z-push:/var/lib/z-push
depends_on:
- server
networks:
- default
- traefik
db:
image: mysql
restart: unless-stopped
volumes:
- database:/var/lib/mysql
networks:
traefik:
external: true
volumes:
- attachments:
- database: