Browse Source

Obsolete docker configuration removed

master
Dirk Alders 1 year ago
parent
commit
c6f104e034
4 changed files with 0 additions and 63 deletions
  1. 0
    42
      docker_config/Makefile
  2. 0
    21
      docker_config/docker-compose.yml
  3. BIN
      docker_config/mqtt.tgz
  4. BIN
      docker_config/nodered.tgz

+ 0
- 42
docker_config/Makefile View File

@@ -1,42 +0,0 @@
1
-DOCKER_COMP = sudo docker-compose
2
-
3
-help:
4
-	echo Help is not yet implemented...
5
-
6
-nodered:
7
-	if [ ! -d nodered ]; then tar -xvzf nodered.tgz; fi
8
-mqtt:
9
-	if [ ! -d mqtt ]; then tar -xvzf mqtt.tgz; fi
10
-build: mqtt nodered
11
-	$(DOCKER_COMP) build
12
-
13
-up: mqtt nodered  ## Starts the docker hub
14
-	$(DOCKER_COMP) up
15
-
16
-up_%: mqtt nodered  ## Start a single service
17
-	$(DOCKER_COMP) up $(subst up_,,$@)
18
-
19
-down: ## Stops the docker hub
20
-	$(DOCKER_COMP) down --remove-orphans
21
-
22
-restart: ## Restarts the docker hub
23
-	$(DOCKER_COMP) restart
24
-
25
-status: ## Prompt Containers
26
-	$(DOCKER_COMP) ps
27
-
28
-sh_%: ## Connects to the application container
29
-	$(DOCKER_COMP) exec $(subst sh_,,$@) sh
30
-
31
-bash_%: ## Connects to the application container
32
-	$(DOCKER_COMP) exec $(subst bash_,,$@) bash
33
-
34
-logs: ## Displays the logs of the application container
35
-	$(DOCKER_COMP) logs -f
36
-
37
-logs_%: ## Displays the logs of the application container
38
-	$(DOCKER_COMP) logs -f $(subst logs_,,$@)
39
-
40
-cleanall:
41
-	rm -rf mqtt nodered
42
-	sudo docker system prune -a

+ 0
- 21
docker_config/docker-compose.yml View File

@@ -1,21 +0,0 @@
1
-version: '3'
2
-services:
3
-
4
-  my_nodered:
5
-    restart: always
6
-    image: nodered/node-red:latest
7
-    container_name: nodered
8
-    depends_on:
9
-      - mqtt
10
-    network_mode: host
11
-    volumes:
12
-      - ./nodered:/data
13
-
14
-  mqtt:
15
-    build: mqtt
16
-    restart: always
17
-    ports:
18
-      - "1883:1883"
19
-      - "9001:9001"
20
-    volumes:
21
-      - ./mqtt:/mosquitto

BIN
docker_config/mqtt.tgz View File


BIN
docker_config/nodered.tgz View File


Loading…
Cancel
Save