-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add pdf worker to docker compose (#363)
- Loading branch information
1 parent
b85e59f
commit 3e6351a
Showing
2 changed files
with
82 additions
and
0 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 |
---|---|---|
|
@@ -113,6 +113,7 @@ services: | |
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:[email protected]} | ||
- LAGO_SIDEKIQ_WEB=true | ||
- SIDEKIQ_EVENTS=true | ||
- SIDEKIQ_PDFS=true | ||
- LAGO_CLICKHOUSE_ENABLED=true | ||
- LAGO_KAFKA_BOOTSTRAP_SERVERS=redpanda:9092 | ||
- LAGO_KAFKA_RAW_EVENTS_TOPIC=events-raw | ||
|
@@ -160,6 +161,7 @@ services: | |
- LAGO_DISABLE_WALLET_REFRESH=${LAGO_DISABLE_WALLET_REFRESH:-} | ||
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:[email protected]} | ||
- SIDEKIQ_EVENTS=true | ||
- SIDEKIQ_PDFS=true | ||
- LAGO_CLICKHOUSE_ENABLED=true | ||
- LAGO_KAFKA_BOOTSTRAP_SERVERS=redpanda:9092 | ||
- LAGO_KAFKA_RAW_EVENTS_TOPIC=events-raw | ||
|
@@ -202,6 +204,42 @@ services: | |
- LAGO_KAFKA_CLICKHOUSE_CONSUMER_GROUP=clickhouse | ||
- NANGO_SECRET_KEY=${NANGO_SECRET_KEY} | ||
|
||
api-pdfs-worker: | ||
image: api | ||
container_name: lago_api_events_worker | ||
depends_on: | ||
- api | ||
restart: unless-stopped | ||
command: [ "./scripts/start.pdfs.worker.dev.sh" ] | ||
build: | ||
context: ./api | ||
dockerfile: $LAGO_PATH/api/Dockerfile.dev | ||
volumes: | ||
- $LAGO_PATH/api:/app:delegated | ||
environment: | ||
- LAGO_API_URL=https://api.lago.dev | ||
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@db:5432/${POSTGRES_DB:-lago} | ||
- REDIS_URL=redis://redis:6379 | ||
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64} | ||
- ENCRYPTION_PRIMARY_KEY=${ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key} | ||
- ENCRYPTION_DETERMINISTIC_KEY=${ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key} | ||
- ENCRYPTION_KEY_DERIVATION_SALT=${ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} | ||
- LAGO_USE_AWS_S3=${LAGO_USE_AWS_S3:-false} | ||
- LAGO_FRONT_URL=${FRONT_URL:-https://app.lago.dev} | ||
- LAGO_PARALLEL_THREADS_COUNT=${LAGO_PARALLEL_THREADS_COUNT:-4} | ||
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} | ||
- LAGO_REDIS_CACHE_URL=redis://redis:6379 | ||
- SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY:-} | ||
- LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-} | ||
- LAGO_DISABLE_WALLET_REFRESH=${LAGO_DISABLE_WALLET_REFRESH:-} | ||
- LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:[email protected]} | ||
- SIDEKIQ_PDFS=true | ||
- LAGO_CLICKHOUSE_ENABLED=true | ||
- LAGO_KAFKA_BOOTSTRAP_SERVERS=redpanda:9092 | ||
- LAGO_KAFKA_RAW_EVENTS_TOPIC=events-raw | ||
- LAGO_KAFKA_CLICKHOUSE_CONSUMER_GROUP=clickhouse | ||
- NANGO_SECRET_KEY=${NANGO_SECRET_KEY} | ||
|
||
api-clock: | ||
image: api | ||
container_name: lago_api_clock | ||
|
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