Browse Source

Add 'sentry/' from commit 'f4a9a859c05075327d3e715a7962c4a940a6e3df'

git-subtree-dir: sentry
git-subtree-mainline: 4e835483a28e14dc8c34f0ef53dfe00f44bee459
git-subtree-split: f4a9a859c05075327d3e715a7962c4a940a6e3df
Guilhem Saurel 6 years ago
parent
commit
34f2b176e1
3 changed files with 97 additions and 0 deletions
  1. 25 0
      sentry/LICENSE
  2. 24 0
      sentry/README.md
  3. 48 0
      sentry/docker-compose.yml

+ 25 - 0
sentry/LICENSE

@@ -0,0 +1,25 @@
+BSD 2-Clause License
+
+Copyright (c) 2018, Guilhem Saurel
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 24 - 0
sentry/README.md

@@ -0,0 +1,24 @@
+# Sentry on proxyta.net
+
+## Reverse Proxy
+
+This config needs træfik, eg. [proxyta.net](https://framagit.org/oxyta.net/proxyta.net)
+
+## Configure
+
+```bash
+echo SENTRY_SECRET_KEY=$(openssl rand -base64 32) >> .env
+echo CHATONS_DOMAIN=$YOUR_FQDN> >> .env
+echo SENTRY_EMAIL_HOST= >> .env
+echo SENTRY_EMAIL_PORT= >> .env
+echo SENTRY_EMAIL_USER= >> .env
+echo SENTRY_EMAIL_PASSWORD= >> .env
+echo SENTRY_EMAIL_USE_TLS= >> .env
+```
+
+## Deploy
+
+```bash
+docker-compose up -d
+docker-compose exec sentry sentry upgrade
+```

+ 48 - 0
sentry/docker-compose.yml

@@ -0,0 +1,48 @@
+version: '3'
+
+services:
+  redis:
+    image: redis:alpine
+    restart: unless-stopped
+  postgres:
+    image: postgres:11-alpine
+    restart: unless-stopped
+    volumes:
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/db:/var/lib/postgresql/data
+  sentry:
+    image: sentry
+    restart: unless-stopped
+    env_file:
+      - .env
+    networks:
+      - web
+      - default
+    labels:
+      traefik.enable: "true"
+      traefik.frontend.rule: "Host: sentry.${CHATONS_DOMAIN:-localhost}, www.sentry.${CHATONS_DOMAIN:-localhost}"
+    environment:
+      - SENTRY_REDIS_HOST=redis
+      - SENTRY_POSTGRES_HOST=postgres
+      - SENTRY_SERVER_EMAIL=sentry@${CHATONS_DOMAIN:-localhost}
+  cron:
+    command: "sentry run cron"
+    image: sentry
+    restart: unless-stopped
+    env_file:
+      - .env
+    environment:
+      - SENTRY_REDIS_HOST=redis
+      - SENTRY_POSTGRES_HOST=postgres
+  worker:
+    command: "sentry run worker"
+    image: sentry
+    restart: unless-stopped
+    env_file:
+      - .env
+    environment:
+      - SENTRY_REDIS_HOST=redis
+      - SENTRY_POSTGRES_HOST=postgres
+
+networks:
+  web:
+    external: true