Browse Source

oxyta.net conventions

Guilhem Saurel 6 years ago
parent
commit
f4a9a859c0
2 changed files with 7 additions and 10 deletions
  1. 2 2
      README.md
  2. 5 8
      docker-compose.yml

+ 2 - 2
README.md

@@ -2,13 +2,13 @@
 
 ## Reverse Proxy
 
-This config needs a reverse proxy, like [proxyta.net](https://framagit.org/nim65s/proxyta.net)
+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 DOMAIN_NAME=$YOUR_FQDN> >> .env
+echo CHATONS_DOMAIN=$YOUR_FQDN> >> .env
 echo SENTRY_EMAIL_HOST= >> .env
 echo SENTRY_EMAIL_PORT= >> .env
 echo SENTRY_EMAIL_USER= >> .env

+ 5 - 8
docker-compose.yml

@@ -1,17 +1,14 @@
-version: '2'
-
-volumes:
-  sql:
+version: '3'
 
 services:
   redis:
     image: redis:alpine
     restart: unless-stopped
   postgres:
-    image: postgres:10-alpine
+    image: postgres:11-alpine
     restart: unless-stopped
     volumes:
-      - "sql:/var/lib/postgresql/data"
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/db:/var/lib/postgresql/data
   sentry:
     image: sentry
     restart: unless-stopped
@@ -22,11 +19,11 @@ services:
       - default
     labels:
       traefik.enable: "true"
-      traefik.frontend.rule: "Host: sentry.${DOMAIN_NAME}, www.sentry.${DOMAIN_NAME}"
+      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@${DOMAIN_NAME}
+      - SENTRY_SERVER_EMAIL=sentry@${CHATONS_DOMAIN:-localhost}
   cron:
     command: "sentry run cron"
     image: sentry