Skip to content

Commit

Permalink
docker-compose updated
Browse files Browse the repository at this point in the history
  • Loading branch information
UmarFarooq-MP committed Sep 27, 2024
1 parent 94f5719 commit 91e1b4f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@ services:
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
hostname : queue
hostname: queue
ports:
- 5672:5672
- 15672:15672
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_log:/var/log/rabbitmq/
networks:
- rabbitmq_go_net
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 30s
timeout: 10s
retries: 5
datasvc:
build: .
hostname: dsvc
Expand All @@ -20,8 +25,12 @@ services:
networks:
- rabbitmq_go_net
depends_on:
- rabbitmq
rabbitmq:
condition: service_healthy
restart: on-failure
networks:
rabbitmq_go_net:
driver: bridge
volumes:
rabbitmq_data:
rabbitmq_log:

0 comments on commit 91e1b4f

Please sign in to comment.