Skip to content

Commit

Permalink
Remove PostgreSQL and RabbitMQ Dependencies
Browse files Browse the repository at this point in the history
Simplifying the deployment by using only Redis as the Queue and result
store. We don't require the advanced features of RabbitMQ and PostgreSQL
for our use case.

Signed-off-by: Colin Wilk <[email protected]>
  • Loading branch information
kliwniloc committed Jun 18, 2024
1 parent 0c3e42e commit ac68be7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 501 deletions.
38 changes: 18 additions & 20 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
---
version: '3'
services:
rabbitmq:
image: rabbitmq:3-management
hostname: my-rabbit
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
ports:
- "5672:5672"
- "15672:15672"
restart: unless-stopped

postgres:
image: postgres:latest
environment:
POSTGRES_USER: fio
POSTGRES_PASSWORD: password
POSTGRES_DB: fio
ports:
- "5432:5432"

# We are setting up redis with appendfsync set to always here. This ensures
# maximum data durability at the cost of performance.
# If you require high performance you might consider setting this to everysec
# instead which syncs to disk every second.
redis:
image: redis:latest
command: redis-server --appendonly yes --appendfsync always
volumes:
- redis_data:/data
ports:
- "6379:6379"
restart: unless-stopped
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s

volumes:
redis_data:
driver: local
Loading

0 comments on commit ac68be7

Please sign in to comment.