docker compose containers should start automatically

master
B.J. Dweck 2021-02-08 09:57:29 +02:00
parent b409d7fe28
commit c33f6523e2
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,8 @@ services:
- tor_net - tor_net
depends_on: depends_on:
- broker - broker
restart: unless-stopped
broker: broker:
image: eclipse-mosquitto image: eclipse-mosquitto
volumes: volumes:
@ -26,6 +27,7 @@ services:
networks: networks:
- tor_net - tor_net
- broker_net - broker_net
restart: unless-stopped
subscriber: subscriber:
build: './subscriber' build: './subscriber'
@ -38,6 +40,7 @@ services:
- broker_net - broker_net
depends_on: depends_on:
- broker - broker
restart: unless-stopped
volumes: volumes:
broker_data: broker_data: