Skip to content

Commit 43e0ad4

Browse files
authored
devenv: Allow multiple seers to run at the same time (#1907)
If you set unique ports for each version of seer, docker compose should just work.
1 parent 97799e0 commit 43e0ad4

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ CODECOV_SUPER_TOKEN=...
1818

1919
RPC_SHARED_SECRET="seers-also-very-long-value-haha" # Match with SEER_RPC_SHARED_SECRET=[""] in sentry.conf.py
2020
SBX_PROJECT=eng-dev-sbx--XXX # If using push-image and https://github.com/getsentry/terraform-sandboxes.private
21+
22+
RABBITMQ_PORT=5672
23+
RABBITMQ_CONFIG_PORT=15672
24+
DB_PORT=5433
25+
APP_PORT=9091

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ docker compose down --volumes
9292
make update && make dev
9393
```
9494

95+
## Running Multiple Instances of Seer
96+
97+
To run multiple instances of Seer, you should set unique port values for each instance in the `.env` file.
98+
99+
```
100+
RABBITMQ_PORT=...
101+
RABBITMQ_CONFIG_PORT=...
102+
DB_PORT=...
103+
APP_PORT=...
104+
```
105+
95106
## Langfuse Integration
96107

97108
To enable Langfuse tracing, set these environment variables:

docker-compose.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
services:
22
rabbitmq:
33
image: rabbitmq:3.8-alpine
4-
container_name: "rabbitmq_lightweight"
54
ports:
6-
- "5672:5672"
7-
- "15672:15672"
5+
- "${RABBITMQ_PORT:-5672}:5672"
6+
- "${RABBITMQ_CONFIG_PORT:-15672}:15672"
87
db:
98
image: pgvector/pgvector:pg14
109
restart: always
@@ -15,7 +14,7 @@ services:
1514
volumes:
1615
- pgdata:/var/lib/postgresql/data
1716
ports:
18-
- "5433:5432"
17+
- "${DB_PORT:-5433}:5432"
1918
test-db:
2019
image: pgvector/pgvector:pg14
2120
restart: always
@@ -65,7 +64,7 @@ services:
6564
- USE_EU_REGION=0
6665
- IGNORE_API_AUTH=1
6766
ports:
68-
- "9091:9091" # Local dev sentry app looks for port 9091 for the seer service.
67+
- "${APP_PORT:-9091}:9091" # Local dev sentry app looks for port 9091 for the seer service.
6968
volumes:
7069
pgdata:
7170
pgdata_test:

0 commit comments

Comments
 (0)