AD
Size: a a a
AD
EU
AD
EU
AD
EU
EU
Е
AN
rabbitmq:
image: rabbitmq
command: rabbitmq-server
expose:
- 5672
- 15672
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ] // альтернативно пробовал test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 5s
timeout: 15s
retries: 3
docker container logs 91545298d717
...20-0
6-17 19:21:50.708 [info] <0.683.0> Server startup complete; 0 plugins started.AD
rabbitmq:
image: rabbitmq
command: rabbitmq-server
expose:
- 5672
- 15672
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ] // альтернативно пробовал test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 5s
timeout: 15s
retries: 3
docker container logs 91545298d717
...20-0
6-17 19:21:50.708 [info] <0.683.0> Server startup complete; 0 plugins started.AN
SL
AN
ubuntu@ip-172-31-35-16:/websites/docker-compose$ docker exec -it 91545298d717 /bin/bash
root@91545298d717:/# curl -f http://localhost:15672
bash: curl: command not found
root@91545298d717:/# nc -z localhost 5672
bash: nc: command not found
AN
AD
ubuntu@ip-172-31-35-16:/websites/docker-compose$ docker exec -it 91545298d717 /bin/bash
root@91545298d717:/# curl -f http://localhost:15672
bash: curl: command not found
root@91545298d717:/# nc -z localhost 5672
bash: nc: command not found
MT
ubuntu@ip-172-31-35-16:/websites/docker-compose$ docker exec -it 91545298d717 /bin/bash
root@91545298d717:/# curl -f http://localhost:15672
bash: curl: command not found
root@91545298d717:/# nc -z localhost 5672
bash: nc: command not found
AN
AN
MT
MT