Obsolete docker configuration removed

This commit is contained in:
Dirk Alders 2023-10-31 18:42:37 +01:00
parent a6df2c99a4
commit c6f104e034
4 changed files with 0 additions and 63 deletions

View File

@ -1,42 +0,0 @@
DOCKER_COMP = sudo docker-compose
help:
echo Help is not yet implemented...
nodered:
if [ ! -d nodered ]; then tar -xvzf nodered.tgz; fi
mqtt:
if [ ! -d mqtt ]; then tar -xvzf mqtt.tgz; fi
build: mqtt nodered
$(DOCKER_COMP) build
up: mqtt nodered ## Starts the docker hub
$(DOCKER_COMP) up
up_%: mqtt nodered ## Start a single service
$(DOCKER_COMP) up $(subst up_,,$@)
down: ## Stops the docker hub
$(DOCKER_COMP) down --remove-orphans
restart: ## Restarts the docker hub
$(DOCKER_COMP) restart
status: ## Prompt Containers
$(DOCKER_COMP) ps
sh_%: ## Connects to the application container
$(DOCKER_COMP) exec $(subst sh_,,$@) sh
bash_%: ## Connects to the application container
$(DOCKER_COMP) exec $(subst bash_,,$@) bash
logs: ## Displays the logs of the application container
$(DOCKER_COMP) logs -f
logs_%: ## Displays the logs of the application container
$(DOCKER_COMP) logs -f $(subst logs_,,$@)
cleanall:
rm -rf mqtt nodered
sudo docker system prune -a

View File

@ -1,21 +0,0 @@
version: '3'
services:
my_nodered:
restart: always
image: nodered/node-red:latest
container_name: nodered
depends_on:
- mqtt
network_mode: host
volumes:
- ./nodered:/data
mqtt:
build: mqtt
restart: always
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mqtt:/mosquitto

Binary file not shown.

Binary file not shown.