Skip to content
Snippets Groups Projects
Commit 312eb633 authored by nimrod's avatar nimrod
Browse files

WIP.

Installation, cron jobs, surrounding services. Missing configuration and
whatnot.
parent aeda38e4
No related branches found
No related tags found
No related merge requests found
Pipeline #376 passed
......@@ -4,6 +4,12 @@
Dockerized setup of the [SOGo](https://sogo.nu/) groupware.
This a WIP and not ready or in use anywhere. I'm playing around with this
because the mail UI in Nextcloud is poor (for example search times out for me)
and the ActiveSync using z-push fails more than it succeeds. I'm thinking about
replacing the mail UI, calendar, contact, tasks and ActiveSync (the PIM aspects)
with SOGo and removing z-push.
## License
This software is licensed under the MIT license (see `LICENSE.txt`).
......
*
!crontab
# hadolint ignore=DL3006
FROM registry.hub.docker.com/adarnimrod/cron
# hadolint ignore=DL3018
RUN apk add --no-cache --update docker-cli
COPY --chown=root:root crontab /crontab
# hadolint ignore=DL3002
USER root
*/5 * * * * docker exec -u sogo sogo_sogo_1 /usr/sbin/sogo-ealarms-notify
0 0 * * * docker exec -u sogo sogo_sogo_1 /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.creds
---
version: "3.7"
services:
crond:
build:
context: crond/
restart: always
volumes:
- /run/docker.sock:/run/docker.sock
memcached:
image: registry.hub.docker.com/library/memcached:1.6-alpine
healthcheck:
test:
- CMD-SHELL
- pgrep memcached || exit 1
restart: always
postres:
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-foo}"
POSTGRES_USER: sogo
image: registry.hub.docker.com/library/postgres:13-alpine
healthcheck:
test:
- CMD-SHELL
- >-
PGPASSWORD="$${POSTGRES_PASSWORD}"
psql
--host=127.0.0.1
--username=$${POSTGRES_USER}
--dbname=$${POSTGRES_USER}
--command="SELECT 1;"
|| exit 1
restart: always
volumes:
- postgres:/var/lib/postgresql/data
sogo:
build:
context: sogo/
hostname: sogo.shore.co.il
restart: always
volumes:
postgres:
networks:
default:
name: shore
external: true
*
FROM registry.hub.docker.com/library/debian:buster-slim
# hadolint ignore=DL3008
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
gnupg \
&& \
apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 0x810273C4 && \
echo 'deb https://packages.inverse.ca/SOGo/nightly/5/debian/ buster buster' > /etc/apt/sources.list.d/sogo.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
sogo-activesync \
sogo \
&& \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
EXPOSE 20000
USER "www-data"
WORKDIR /var/www
CMD [ "apache2", "-DFOREGROUND" ]
HEALTHCHECK CMD wget --spider --quiet http://localhost:20000/ --user-agent 'Healthcheck' || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment