dev-pledge/sentry

Docker Compose Sentry For Use with NGINX

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:Makefile

0.0.1 2018-02-20 12:45 UTC

This package is not auto-updated.

Last update: 2024-04-28 22:34:41 UTC


README

Install the Application

You will need Docker and Composer installed on your machine.

You will need another Docker container running NGINX to route your DNS to this install.

Run this command from the directory in which you want to install your new Sentry Installation.

composer create-project dev-pledge/sentry [my-app-name]

Replace [my-app-name] with the desired directory name for your new application.

To set up sentry

make up

wait for containers to be made

make stop

make install

As the install runs you will need to create your email and passwords credentials - the install script will ask for them.

To run the application in development, you can also run either of these command.

make up

or if containers are already running

make start

you can now reference the docker external network 'global_sentry' and the service 'sentry:9000' in your other docker containers

my-great-app:
  
  networks:
    - default
    - sentry_network

networks:
  sentry_network:
    external:
      name: global_sentry

You can also set up email notifications. Add these environment variables to each docker-compose.yml service environment sections.

SENTRY_SERVER_EMAIL="sentry@my.domain"
SENTRY_EMAIL_HOST="smtp.mailgun.org"
SENTRY_EMAIL_PORT="587"
SENTRY_EMAIL_USER="postmaster@my.domain"
SENTRY_EMAIL_PASSWORD="pass"
SENTRY_EMAIL_USE_TLS="true"
SENTRY_SECRET_KEY="some_key" 

Have fun its very useful once setup - the whole setup should take no longer than 20 minutes at most. 5 mins if your really quick!