mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-20 12:34:30 -04:00
* made a few changes in order to further simplify the setup for
developers of the Groupware backend
* add STALWART_DOMAIN to deployments/examples/opencloud_full/.env
* adapt the Stalwart configuration file to not set server.hostname and,
instead, pick it up from /etc/hostname, which is set by Docker
Compose as we can use default values for STALWART_DOMAIN there, in an
analogous fashion to the other containers in that project
* add config/keycloak/clients/groupware.json to avoid requiring manual
configuration of Keycloak via the admin web UI
* Stalwart container:
- listen for SMTPS on :1465
- remove the stalwart-logs volume, not needed (logs are going to
stdout)
* updated services/groupware/DEVELOPER.md:
- refer to a variable OCDIR to make instructions more copy-pasteable
- remove manual Keycloak configuration section as it is now obsolete,
replaced by provisioning a configuration file instead
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
---
|
|
services:
|
|
traefik:
|
|
networks:
|
|
opencloud-net:
|
|
aliases:
|
|
- ${STALWART_DOMAIN:-stalwart.opencloud.test}
|
|
|
|
stalwart:
|
|
image: ghcr.io/stalwartlabs/stalwart:v0.13.2-alpine
|
|
hostname: ${STALWART_DOMAIN:-stalwart.opencloud.test}
|
|
networks:
|
|
- opencloud-net
|
|
ports:
|
|
- "127.0.0.1:143:143"
|
|
- "127.0.0.1:993:993"
|
|
- "127.0.0.1:1465:465"
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./config/stalwart:/opt/stalwart/etc
|
|
- stalwart-data:/opt/stalwart/data
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.stalwart.entrypoints=https"
|
|
- "traefik.http.routers.stalwart.rule=Host(`${STALWART_DOMAIN:-stalwart.opencloud.test}`)"
|
|
- "traefik.http.routers.stalwart.tls.certresolver=http"
|
|
- "traefik.http.routers.stalwart.service=stalwart"
|
|
- "traefik.http.services.stalwart.loadbalancer.server.port=8080"
|
|
logging:
|
|
driver: ${LOG_DRIVER:-local}
|
|
restart: always
|
|
|
|
volumes:
|
|
stalwart-data:
|
|
|
|
networks:
|
|
opencloud-net:
|