-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(devservices): Add sentry config (#80030)
This adds devservices configs for usage with sentry. Instead of running relay as a part of devserver, we are opting to do it in a container which allows us to automatically import relay configs from the relay repo. This will help in reducing the duplication of configs across repos.
- Loading branch information
1 parent
c91243c
commit a0b4609
Showing
2 changed files
with
63 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Ignored by docker compose, used by devservices | ||
x-sentry-service-config: | ||
version: 0.1 | ||
service_name: sentry | ||
dependencies: | ||
snuba: | ||
description: Service that provides fast aggregation and query capabilities on top of Clickhouse | ||
remote: | ||
repo_name: snuba | ||
branch: master | ||
repo_link: [email protected]:getsentry/snuba.git | ||
mode: containerized | ||
relay: | ||
description: Service event forwarding and ingestion service | ||
remote: | ||
repo_name: relay | ||
branch: master | ||
repo_link: [email protected]:getsentry/relay.git | ||
mode: containerized | ||
postgres: | ||
description: Database used to store Sentry data | ||
modes: | ||
default: [snuba, postgres, relay] | ||
|
||
services: | ||
postgres: | ||
image: ghcr.io/getsentry/image-mirror-library-postgres:14-alpine | ||
environment: | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_DB: sentry | ||
command: | ||
[ | ||
postgres, | ||
-c, | ||
wal_level=logical, | ||
-c, | ||
max_replication_slots=1, | ||
-c, | ||
max_wal_senders=1, | ||
] | ||
networks: | ||
- devservices | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
ports: | ||
- 5432:5432 | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
|
||
networks: | ||
devservices: | ||
name: devservices | ||
|
||
volumes: | ||
postgres-data: |
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