Skip to content

Commit 36b18e8

Browse files
committed
Docker: Set restart to unless-stopped
1 parent 2b7e7d1 commit 36b18e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
rabbitmq1:
33
image: rabbitmq:3-management
4+
restart: unless-stopped
45
hostname: rabbitmq1
56
environment:
67
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
@@ -13,6 +14,7 @@ services:
1314

1415
rabbitmq2:
1516
image: rabbitmq:3-management
17+
restart: unless-stopped
1618
hostname: rabbitmq2
1719
depends_on:
1820
- rabbitmq1
@@ -25,6 +27,7 @@ services:
2527

2628
rabbitmq3:
2729
image: rabbitmq:3-management
30+
restart: unless-stopped
2831
hostname: rabbitmq3
2932
depends_on:
3033
- rabbitmq1
@@ -37,6 +40,7 @@ services:
3740

3841
haproxy:
3942
image: haproxy:3.0
43+
restart: unless-stopped
4044
volumes:
4145
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
4246
depends_on:

0 commit comments

Comments
 (0)