Skip to content

Commit

Permalink
feat(env): Add SENTRY_BIND var (#512)
Browse files Browse the repository at this point in the history
Closes #279, supercedes #306. This is much simpler and safer now that we have `nginx` in front of everything.

Thanks a lot @larsnystrom!
  • Loading branch information
BYK committed Sep 14, 2020
1 parent 313fef0 commit d6247e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
COMPOSE_PROJECT_NAME=sentry_onpremise
SENTRY_EVENT_RETENTION_DAYS=90
# You can either use a port number or an IP:PORT combo for SENTRY_BIND
# See https://docs.docker.com/compose/compose-file/#ports for more
SENTRY_BIND=9000
SENTRY_IMAGE=getsentry/sentry:latest
SNUBA_IMAGE=getsentry/snuba:latest
RELAY_IMAGE=getsentry/relay:latest
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ services:
nginx:
<< : *restart_policy
ports:
- '9000:80/tcp'
- '$SENTRY_BIND:80/tcp'
image: 'nginx:1.16'
volumes:
- type: bind
Expand Down

0 comments on commit d6247e2

Please sign in to comment.