-
Notifications
You must be signed in to change notification settings - Fork 94
/
sentry-postgresql-redis.pmx
106 lines (93 loc) · 3.13 KB
/
sentry-postgresql-redis.pmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
name: sentry-postgresql-redis
description: "Template for a Sentry application. \r\n\r\nApplication uses 3 linked
containers:\r\n\r\nslafs/sentry\r\npostgresql\r\nredis\r\n\r\nSentry is an error
notification service, more information here:\r\nhttps://github.com/getsentry/sentry"
keywords: sentry, exception notification
type: Django
documentation: |-
Sentry Application
=============================
This application provides a running instance of Sentry along with Posgresql and Redis.
Based off docker image https://registry.hub.docker.com/u/slafs/sentry/
### System Requirements
This is an application that consists of 3 containers linked together.
### Setup
After starting the application, you will need to forward port 9000.
For example: `VBoxManage controlvm panamax-vm natpf1 sentry,tcp,,9000,,9000`
If you experience issues with containers not starting or you see an error like `Error response from daemon: No such container:`, try restarting with `$ panamax restart`. If that doesn't resolve the problem, you can also try the "Rebuild App" button.
You will probably want to change these variables:
```
SENTRY_ADMIN_USERNAME=admin
SENTRY_ADMIN_PASSWORD=admin
SENTRY_ADMIN_EMAIL=admin@test.com
SECRET_KEY=randomvalue
SENTRY_URL_PREFIX=http://localhost:9000
```
### Email settings
```
SENTRY_SERVER_EMAIL - Address to send mail as
SENTRY_EMAIL_HOST - SMTP host
SENTRY_EMAIL_PASSWORD - SMTP password
SENTRY_EMAIL_HOST_USER - SMTP username
SENTRY_EMAIL_PORT - SMTP port
SENTRY_EMAIL_USE_TLS - Set to True to enable TLS
```
### Social settings
```
* TWITTER_CONSUMER_KEY
* TWITTER_CONSUMER_SECRET
* FACEBOOK_APP_ID
* FACEBOOK_API_SECRET
* GOOGLE_OAUTH2_CLIENT_ID
* GOOGLE_OAUTH2_CLIENT_SECRET
* GITHUB_APP_ID
* GITHUB_API_SECRET
* TRELLO_API_KEY
* TRELLO_API_SECRET
```
### Post-run Instructions
To access the application go to: http://localhost:9000/
### Port Forwarding
If you're using Virtual Box:
`VBoxManage controlvm panamax-vm natpf1 sentry,tcp,,9000,,9000`
### Resources
Additional resources are available at: https://registry.hub.docker.com/u/slafs/sentry/ and https://github.com/getsentry/sentry
images:
- name: slafs_sentry_latest
source: slafs/sentry:latest
type: Default
expose:
- '9000'
ports:
- host_port: '9000'
container_port: '9000'
proto: TCP
links:
- service: postgres_1
alias: postgresdb
- service: redis
alias: redis
environment:
- variable: SECRET_KEY
value: randomvalue
- variable: SENTRY_URL_PREFIX
value: http://localhost:9000
- variable: DATABASE_URL
value: postgres://postgres:@postgresdb/postgres
- variable: SENTRY_REDIS_HOST
value: redis
- variable: CACHE_URL
value: hiredis://redis:6379/2/
- variable: SENTRY_ADMIN_USERNAME
value: admin
- variable: SENTRY_ADMIN_PASSWORD
value: admin
- variable: SENTRY_ADMIN_EMAIL
value: test@test.com
- name: postgres_1
source: postgres:latest
type: Default
- name: redis
source: redis:latest
type: Default