-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default.env and test.env and multiple docker-compose files to ove…
…rride settings
- Loading branch information
Showing
10 changed files
with
181 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Plugins to be loaded at launch | ||
CABOT_PLUGINS_ENABLED=cabot_alert_hipchat==1.8.3,cabot_alert_twilio==1.2.0,cabot_alert_email==1.4.3 | ||
|
||
DEBUG=t | ||
DATABASE_URL=postgres://postgres@db:5432/postgres | ||
DJANGO_SETTINGS_MODULE=cabot.settings | ||
HIPCHAT_URL=https://api.hipchat.com/v1/rooms/message | ||
LOG_FILE=/dev/null | ||
PORT=5001 | ||
|
||
# You shouldn't need to change anything above this line | ||
|
||
# Base path to include before generated URLs. If not defined, uses `/` | ||
# URL_PREFIX=/ | ||
|
||
# Local time zone for this installation. Choices can be found here: | ||
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | ||
TIME_ZONE=Etc/UTC | ||
|
||
# URL of calendar to synchronise rota with | ||
CALENDAR_ICAL_URL=http://www.google.com/calendar/ical/example.ics | ||
|
||
# Django settings | ||
CELERY_BROKER_URL=redis://redis:6379/1 | ||
|
||
# From parameter for the graphite request. If not defined, by default take -10 minutes | ||
# GRAPHITE_FROM=-10minute | ||
|
||
# User-Agent string used for HTTP checks | ||
HTTP_USER_AGENT=Cabot | ||
|
||
# Used for pointing links back in alerts etc. | ||
WWW_HTTP_HOST=localhost | ||
WWW_SCHEME=http | ||
|
||
# OPTIONAL SETTINGS | ||
# | ||
# # Django admin email | ||
# ADMIN_EMAIL=you@example.com | ||
# CABOT_FROM_EMAIL=cabot@example.com | ||
# | ||
# DJANGO_SECRET_KEY= | ||
# | ||
# Hostname of your Graphite server instance | ||
GRAPHITE_API=http://graphite.example.com/ | ||
GRAPHITE_USER=username | ||
GRAPHITE_PASS=password | ||
|
||
# Hipchat integration | ||
HIPCHAT_ALERT_ROOM=48052 | ||
HIPCHAT_API_KEY=your_hipchat_api_key | ||
|
||
# Jenkins integration | ||
JENKINS_API=https://jenkins.example.com/ | ||
JENKINS_USER=username | ||
JENKINS_PASS=password | ||
|
||
# SMTP settings | ||
SES_HOST=email-smtp.us-east-1.amazonaws.com | ||
SES_USER=username | ||
SES_PASS=password | ||
SES_PORT=465 | ||
|
||
# Twilio integration for SMS and telephone alerts | ||
TWILIO_ACCOUNT_SID=your_account_sid | ||
TWILIO_AUTH_TOKEN=your_auth_token | ||
TWILIO_OUTGOING_NUMBER=+14155551234 | ||
|
||
# Use for LDAP authentication | ||
AUTH_LDAP=true | ||
AUTH_LDAP_SERVER_URI=ldap://ldap.example.com | ||
AUTH_LDAP_BIND_DN="cn=Manager,dc=example,dc=com" | ||
AUTH_LDAP_BIND_PASSWORD="" | ||
AUTH_LDAP_USER_SEARCH="ou=People,dc=example,dc=com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DATABASE_URL=sqlite://:memory: | ||
|
||
CELERY_BROKER_URL=sqla+sqlite://:memory: | ||
CELERY_RESULT_BACKEND=db+sqlite://:memory: | ||
CELERY_ALWAYS_EAGER=true | ||
|
||
SKIP_INIT=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '2' | ||
services: | ||
base: | ||
build: . | ||
image: cabot:web | ||
command: "false" | ||
volumes: | ||
- .:/code | ||
env_file: | ||
- conf/default.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '2' | ||
services: | ||
base: | ||
extends: | ||
file: docker-compose-base.yml | ||
service: base | ||
env_file: | ||
- conf/production.env | ||
|
||
web: | ||
extends: base | ||
command: gunicorn cabot.wsgi:application --config gunicorn.conf | ||
links: | ||
- redis | ||
- db | ||
|
||
worker: | ||
extends: base | ||
command: python manage.py celery worker -A cabot --loglevel=DEBUG --concurrency=16 -Ofair | ||
links: | ||
- redis | ||
- db | ||
|
||
beat: | ||
extends: base | ||
command: python manage.py celery beat -A cabot --loglevel=DEBUG | ||
links: | ||
- redis | ||
- db | ||
|
||
redis: | ||
image: redis | ||
|
||
db: | ||
image: postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '2' | ||
services: | ||
test: | ||
extends: | ||
file: docker-compose-base.yml | ||
service: base | ||
command: python manage.py test -v2 | ||
env_file: | ||
- conf/test.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters