mirror of
https://github.com/reacherhq/check-if-email-exists.git
synced 2026-10-28 16:00:30 +00:00
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
# 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
|