Skip to content

Commit

Permalink
chore(compose): add capture-rs profile with containerised capture for…
Browse files Browse the repository at this point in the history
… testing (#18140)
  • Loading branch information
xvello authored Oct 25, 2023
1 parent fe1ce5a commit 886c804
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ services:
command: ./bin/start-backend & ./bin/start-frontend
restart: on-failure

capture:
image: ghcr.io/posthog/capture:main
restart: on-failure
environment:
ADDRESS: '0.0.0.0:3000'
KAFKA_TOPIC: 'events_plugin_ingestion'
KAFKA_HOSTS: 'kafka:9092'
REDIS_URL: 'redis://redis:6379/'
depends_on:
- redis
- kafka

plugins:
command: ./bin/plugin-server --no-restart-loop
restart: on-failure
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.dev-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ services:
environment:
- DEBUG=1

capture:
extends:
file: docker-compose.base.yml
service: capture
ports:
- 3000:3000
environment:
- DEBUG=1

plugins:
extends:
file: docker-compose.base.yml
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ services:
- '1080:1080'
- '1025:1025'

# Optional capture
capture:
profiles: ['capture-rs']
extends:
file: docker-compose.base.yml
service: capture
ports:
- 3000:3000
environment:
- DEBUG=1

# Temporal containers
elasticsearch:
extends:
Expand Down

0 comments on commit 886c804

Please sign in to comment.