Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

fix: Fix rabbitmq docker compose

Amaury7c3856ebec60
diff --git a/backend/backend_config.toml b/backend/backend_config.toml
index aa599046..de81dccc 100644
--- a/backend/backend_config.toml
+++ b/backend/backend_config.toml
@@ -217,7 +217,7 @@ concurrency = 5
# # URL to connect to the Postgres database.
#
-# Env variable: RCH__STORAGE__0__POSTGRES__DB_URL
+# Env variable: RCH__STORAGE__POSTGRES__DB_URL
# db_url = "postgresql://localhost/reacherdb"
#
# If you wish to store additional data along with the verification results,
@@ -225,5 +225,5 @@ concurrency = 5
# as a JSONB column in the database. This is for example useful to track who
# initiated the verification request in a multi-tenant system.
#
-# Env variable: RCH__STORAGE__0__POSTGRES__TABLE_NAME
+# Env variable: RCH__STORAGE__POSTGRES__EXTRA
# extra = { "my_custom_key" = "my_custom_value" }
diff --git a/rabbitmq/docker-compose.local.yaml b/rabbitmq/docker-compose.local.yaml
deleted file mode 100644
index 50648427..00000000
--- a/rabbitmq/docker-compose.local.yaml
+++ /dev/null
@@ -1,64 +0,0 @@
-# Same as docker-compose.yaml but with the backend image version set to build
-# from the local Dockerfile. This is useful for development purposes.
-version: "3.8"
-
-services:
- rabbitmq:
- image: rabbitmq:4.0-management
- container_name: rabbitmq
- ports:
- - "5672:5672"
- - "15672:15672"
- environment:
- RABBITMQ_DEFAULT_USER: guest
- RABBITMQ_DEFAULT_PASS: guest
- restart: always
-
- postgres:
- image: postgres:14
- container_name: postgres
- ports:
- - "5432:5432"
- environment:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- POSTGRES_DB: reacher_db
- volumes:
- - ./backend/postgres_data:/var/lib/postgresql/data
- restart: always
-
- worker1:
- build:
- context: .
- dockerfile: backend/Dockerfile
- container_name: worker1
- ports:
- - "8080:8080"
- depends_on:
- - postgres
- - rabbitmq
- environment:
- RCH__BACKEND_NAME: worker1
- RUST_LOG: reacher=info
- RCH__WORKER__ENABLE: true
- RCH__WORKER__RABBITMQ__URL: amqp://guest:guest@rabbitmq:5672
- RCH__STORAGE__POSTGRES__DB_URL: postgres://postgres:postgres@postgres:5432/reacher_db
- restart: always
-
- worker2:
- build:
- context: .
- dockerfile: backend/Dockerfile
- container_name: worker2
- ports:
- - "8081:8080"
- depends_on:
- - postgres
- - rabbitmq
- environment:
- RCH__BACKEND_NAME: worker2
- RUST_LOG: reacher=info
- RCH__WORKER__ENABLE: true
- RCH__WORKER__RABBITMQ__URL: amqp://guest:guest@rabbitmq:5672
- RCH__STORAGE__POSTGRES__DB_URL: postgres://postgres:postgres@postgres:5432/reacher_db
- restart: always
diff --git a/rabbitmq/docker-compose.yaml b/rabbitmq/docker-compose.yaml
index a601d12e..a93e898f 100644
--- a/rabbitmq/docker-compose.yaml
+++ b/rabbitmq/docker-compose.yaml
@@ -54,5 +54,5 @@ services:
RCH__WORKER__ENABLE: true
RCH__WORKER__RABBITMQ__URL: amqp://guest:guest@rabbitmq:5672
RCH__STORAGE__POSTGRES__DB_URL: postgres://postgres:postgres@postgres:5432/reacher_db
- RCH__WORKER__THROTTLE__MAX_REQUESTS_PER_MINUTE: 100 # Recommended limit for headless verifications
+ RCH__WORKER__THROTTLE__MAX_REQUESTS_PER_DAY: 10000 # Recommended limit per IP per day for SMTP requests
restart: always