Parcourir la source

sentry: memcached & volume

Guilhem Saurel il y a 6 ans
Parent
commit
835412942a
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      sentry/docker-compose.yml

+ 5 - 0
sentry/docker-compose.yml

@@ -4,6 +4,9 @@ services:
   redis:
   redis:
     image: redis:alpine
     image: redis:alpine
     restart: unless-stopped
     restart: unless-stopped
+  memcached:
+    image: memcached:alpine
+    restart: unless-stopped
   postgres:
   postgres:
     image: postgres:11-alpine
     image: postgres:11-alpine
     restart: unless-stopped
     restart: unless-stopped
@@ -24,6 +27,8 @@ services:
       - SENTRY_REDIS_HOST=redis
       - SENTRY_REDIS_HOST=redis
       - SENTRY_POSTGRES_HOST=postgres
       - SENTRY_POSTGRES_HOST=postgres
       - SENTRY_SERVER_EMAIL=sentry@${CHATONS_DOMAIN:-localhost}
       - SENTRY_SERVER_EMAIL=sentry@${CHATONS_DOMAIN:-localhost}
+    volumes:
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/sentry/data:/var/lib/sentry/file
   cron:
   cron:
     command: "sentry run cron"
     command: "sentry run cron"
     image: sentry
     image: sentry