Fantom-foundation/go-lachesis

View on GitHub
docker/sentry/docker-compose.yml

Summary

Maintainability
Test Coverage
version: '3.5'

networks:
  default:
    external:
      name: ${NETWORK}

# See docs.getsentry.com/on-premise/server/ for full instructions.

x-defaults: &defaults
  image: sentry:9.1-onbuild
  restart: unless-stopped
  depends_on:
    - redis
    - postgres
    - memcached
    - smtp
  env_file: .env
  environment:
    SENTRY_MEMCACHED_HOST: memcached
    SENTRY_REDIS_HOST: redis
    SENTRY_POSTGRES_HOST: postgres
    SENTRY_EMAIL_HOST: smtp
  volumes:
    - sentry-data:/var/lib/sentry/files


services:
  smtp:
    restart: unless-stopped
    image: tianon/exim4

  memcached:
    restart: unless-stopped
    image: memcached:1.5-alpine

  redis:
    restart: unless-stopped
    image: redis:3.2-alpine
  
  postgres:
    restart: unless-stopped
    image: postgres:9.5
    volumes:
      - sentry-postgres:/var/lib/postgresql/data

  web:
    <<: *defaults
    ports:
      - '9000:9000'

  cron:
    <<: *defaults
    command: run cron

  worker:
    <<: *defaults
    command: run worker

volumes:
    sentry-data:
      external: true
    sentry-postgres:
      external: true