-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove PostgreSQL and RabbitMQ Dependencies
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
Showing
6 changed files
with
31 additions
and
501 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 |
---|---|---|
@@ -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 |
Oops, something went wrong.