Skip to content

Commit d6247e2

Browse files
authored
feat(env): Add SENTRY_BIND var (#512)
Closes #279, supercedes #306. This is much simpler and safer now that we have `nginx` in front of everything. Thanks a lot @larsnystrom!
1 parent 313fef0 commit d6247e2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
COMPOSE_PROJECT_NAME=sentry_onpremise
22
SENTRY_EVENT_RETENTION_DAYS=90
3+
# You can either use a port number or an IP:PORT combo for SENTRY_BIND
4+
# See https://docs.docker.com/compose/compose-file/#ports for more
5+
SENTRY_BIND=9000
36
SENTRY_IMAGE=getsentry/sentry:latest
47
SNUBA_IMAGE=getsentry/snuba:latest
58
RELAY_IMAGE=getsentry/relay:latest

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ services:
190190
nginx:
191191
<< : *restart_policy
192192
ports:
193-
- '9000:80/tcp'
193+
- '$SENTRY_BIND:80/tcp'
194194
image: 'nginx:1.16'
195195
volumes:
196196
- type: bind

0 commit comments

Comments
 (0)