From c46bbbc075729331797689492fceda00ce2ba7db Mon Sep 17 00:00:00 2001 From: Gurulandia Date: Sat, 1 Feb 2025 17:40:16 +0200 Subject: [PATCH] Initial commit --- docker/compose/dc-apprise-api.yml | 17 +++++++++++++ docker/compose/dc-gotify.yml | 29 ++++++++++++++++++++++ docker/compose/dc-mailrise.yml | 15 ++++++++++++ docker/compose/gotify.env | 10 ++++++++ docker/dc-template.yml | 22 +++++++++++++++++ docker/notification/.env | 34 ++++++++++++++++++++++++++ docker/notification/docker-compose.yml | 19 ++++++++++++++ 7 files changed, 146 insertions(+) create mode 100644 docker/compose/dc-apprise-api.yml create mode 100644 docker/compose/dc-gotify.yml create mode 100644 docker/compose/dc-mailrise.yml create mode 100644 docker/compose/gotify.env create mode 100644 docker/dc-template.yml create mode 100644 docker/notification/.env create mode 100644 docker/notification/docker-compose.yml diff --git a/docker/compose/dc-apprise-api.yml b/docker/compose/dc-apprise-api.yml new file mode 100644 index 0000000..d4bb288 --- /dev/null +++ b/docker/compose/dc-apprise-api.yml @@ -0,0 +1,17 @@ +services: + apprise-api: + image: ${APPRISE_IMAGE}:${APPRISE_TAG} + container_name: ${APPRISE_CONTAINER_NAME} + restart: ${APPRISE_RESTART_POLICY} + security_opt: + - no-new-privileges:true + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + - TZ=${TZ} + volumes: + - ${DOCKERDIR}/apprise-api/config:/config + ports: + - ${APPRISE_PORT:-8000}:8000 + networks: + - proxy diff --git a/docker/compose/dc-gotify.yml b/docker/compose/dc-gotify.yml new file mode 100644 index 0000000..c8877c0 --- /dev/null +++ b/docker/compose/dc-gotify.yml @@ -0,0 +1,29 @@ +#networks: +# notification: +# name: notification +# driver: bridge +# database: +# name: database +# external: true +services: + gotify: + image: ${GOTIFY_IMAGE}:${GOTIFY_TAG} + container_name: ${GOTIFY_CONTAINER_NAME} + restart: ${GOTIFY_RESTART_POLICY} + security_opt: + - no-new-privileges:true + ports: + - ${GOTIFY_PORT:-8080}:80 +# environment: +# - GOTIFY_DEFAULTUSER_PASS=custom +# - GOTIFY_DATABASE_DIALECT=mysql +# - GOTIFY_DATABASE_CONNECTION=gotify:ubKrbI1NNn)/ryKT@tcp(mariadb:3306)/gotify?charset=utf8&parseTime=True&loc=Local +# - GOTIFY_PLUGINSDIR=data/plugins + env_file: + - path: ./gotify.env + volumes: + - ${DOCKERDIR}/gotify/gotify_data:/app/data + networks: + - proxy +# - notification +# - database \ No newline at end of file diff --git a/docker/compose/dc-mailrise.yml b/docker/compose/dc-mailrise.yml new file mode 100644 index 0000000..47173e0 --- /dev/null +++ b/docker/compose/dc-mailrise.yml @@ -0,0 +1,15 @@ +services: + mailrise: + image: ${MAILRISE_IMAGE}:${MAILRISE_TAG} + container_name: ${MAILRISE_CONTAINER_NAME} + restart: ${MAILRISE_RESTART_POLICY} + security_opt: + - no-new-privileges:true + ports: + - ${MAILRISE_PORT:-8025}:8025 + volumes: + - ${DOCKERDIR}/mailrise/mailrise.conf:/etc/mailrise.conf + - ${DOCKERDIR}/mailrise/certs/cert.pem:/etc/ssl/cert.pem + - ${DOCKERDIR}/mailrise/certs/key.pem:/etc/ssl/key.pem + networks: + - proxy \ No newline at end of file diff --git a/docker/compose/gotify.env b/docker/compose/gotify.env new file mode 100644 index 0000000..1b0c9b1 --- /dev/null +++ b/docker/compose/gotify.env @@ -0,0 +1,10 @@ +DB_HOST=10.0.6.178 +DB_PORT=5432 +DB_USER=gotify +DB_PWD=gotify +DB_NAME=gotify +GOTIFY_DEFAULTUSER_NAME=admin +GOTIFY_DEFAULTUSER_PASS=admin +GOTIFY_DATABASE_DIALECT=postgres +GOTIFY_DATABASE_CONNECTION=host=${DB_HOST} port=${DB_PORT} user=${DB_USER} dbname=${DB_NAME} password=${DB_PWD} +GOTIFY_PLUGINSDIR=data/plugins \ No newline at end of file diff --git a/docker/dc-template.yml b/docker/dc-template.yml new file mode 100644 index 0000000..dfa1d35 --- /dev/null +++ b/docker/dc-template.yml @@ -0,0 +1,22 @@ +services: + crowdsec: + image: ${CROWDSEC_IMAGE}:${CROWDSEC_VERSION} + container_name: ${CROWDSEC_CONTAINER_NAME} + restart: ${CROWDSEC_RESTART_POLICY} + security_opt: + - no-new-privileges:true + networks: + - proxy + environment: + GID: "${GID-1000}" + env_file: + - path: ./crowdsec.env + volumes: + - /etc/localtime:/etc/localtime:ro + - ${DOCKERDIR}/crowdsec/acquis.d:/etc/crowdsec/acquis.d + #- ${DOCKERDIR}/crowdsec/acquis.yaml:/etc/crowdsec/acquis.yaml + - ${DOCKERDIR}/crowdsec/db:/var/lib/crowdsec/data/ + - ${DOCKERDIR}/crowdsec/config:/etc/crowdsec/ + - ${DOCKERDIR}/traefik/logs:/var/log/traefik/:ro + - /var/log/auth.log:/logs/auth.log:ro + - /var/log/syslog.log:/logs/syslog.log:ro diff --git a/docker/notification/.env b/docker/notification/.env new file mode 100644 index 0000000..c5a0013 --- /dev/null +++ b/docker/notification/.env @@ -0,0 +1,34 @@ +COMPOSE_PROJECT_NAME=notification + +##### SYSTEM +PUID=1000 +PGID=1000 +TZ=Europe/HelsinkI + +#USERDIR=/home/gurulandia +DOCKERDIR=/gurulandia/data +SECRETSDIR=/gurulandia/docker-shared/secrets + +##### ProxyName +#PROXYNAME=proxy + +##### Gotify Container +GOTIFY_CONTAINER_NAME=gotify-server +GOTIFY_IMAGE=gotify/serve +GOTIFY_TAG=latest +GOTIFY_RESTART_POLICY=unless-stopped +GOTIFY_PORT=8080 + +##### Apprise Container +APPRISE_CONTAINER_NAME=apprise-api +APPRISE_IMAGE=caronc/apprise +APPRISE_TAG=latest +APPRISE_RESTART_POLICY=unless-stopped +APPRISE_PORT=54008 + +##### Mailrise Container +MAILRISE_CONTAINER_NAME=mailrise +MAILRISE_IMAGE=yoryan/mailrise +MAILRISE_TAG=latest +MAILRISE_RESTART_POLICY=unless-stopped +MAILRISE_PORT=8025 diff --git a/docker/notification/docker-compose.yml b/docker/notification/docker-compose.yml new file mode 100644 index 0000000..5b050d5 --- /dev/null +++ b/docker/notification/docker-compose.yml @@ -0,0 +1,19 @@ +########################### NETWORKS +# There is no need to create any networks outside this docker-compose file. +networks: + proxy: + name: proxy + driver: bridge + external: true + #notification: + # name: notification + # driver: bridge +# Docker Compose v2.20 or greater required to use "include" +include: +########################### SERVICES + - ../compose/dc-gotify.yml + - ../compose/dc-apprise-api.yml + - ../compose/dc-mailrise.yml + #- ../compose/dc-traefik-bouncer.yml + + \ No newline at end of file