Added Files
This commit is contained in:
parent
da8a4a0b3a
commit
55f0742583
@ -1,3 +1,8 @@
|
||||
# Docker-Volumes-NFS
|
||||
|
||||
Docker Volumes mit NFS nutzen
|
||||
|
||||
|
||||
- docker-compose-ngnix.yml ( Beispiel mit nginx ohne Docker Swarm )
|
||||
- docker-compose-nodered.yml ( Beispiel mit nodered ohne Docker Swarm )
|
||||
- docker-compose-swarm-nodered.yml ( Beispiel mit nodered und Docker Swarm )
|
||||
|
19
docker-compose-ngnix.yml
Normal file
19
docker-compose-ngnix.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: "3"
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
container_name: nginx-simple
|
||||
restart: always
|
||||
network_mode: "bridge"
|
||||
volumes:
|
||||
- nginx_volume:/usr/share/nginx/html
|
||||
ports:
|
||||
- 8080:80
|
||||
|
||||
volumes:
|
||||
nginx_volume:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "nfsvers=4,addr=192.168.10.4,rw"
|
||||
device: ":/volume1/Docker/docker/test"
|
30
docker-compose-nodered.yml
Normal file
30
docker-compose-nodered.yml
Normal file
@ -0,0 +1,30 @@
|
||||
################################################################################
|
||||
# Node-RED Stack or Compose
|
||||
################################################################################
|
||||
# docker stack deploy node-red --compose-file docker-compose-node-red.yml
|
||||
# docker-compose -f docker-compose-node-red.yml -p myNoderedProject up
|
||||
################################################################################
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
node-red:
|
||||
image: nodered/node-red:latest
|
||||
environment:
|
||||
- TZ=Europe/Amsterdam
|
||||
ports:
|
||||
- "1880:1880"
|
||||
networks:
|
||||
- node-red-net
|
||||
volumes:
|
||||
- nodered-data:/data
|
||||
|
||||
volumes:
|
||||
nodered-data:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "nfsvers=4,addr=192.168.10.4,rw"
|
||||
device: ":/volume1/Docker/docker/nodered"
|
||||
|
||||
networks:
|
||||
node-red-net:
|
32
docker-compose-swarm-nodered.yml
Normal file
32
docker-compose-swarm-nodered.yml
Normal file
@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
# Node-RED Stack or Compose
|
||||
################################################################################
|
||||
# docker stack deploy node-red --compose-file docker-compose-node-red.yml
|
||||
# docker-compose -f docker-compose-node-red.yml -p myNoderedProject up
|
||||
################################################################################
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
node-red:
|
||||
image: nodered/node-red:1.2.8
|
||||
hostname: docker02
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == docker02
|
||||
environment:
|
||||
- TZ=Europe/Amsterdam
|
||||
ports:
|
||||
- "1880:1880"
|
||||
networks:
|
||||
- node-red-net
|
||||
volumes:
|
||||
- CIFS:/data
|
||||
|
||||
volumes:
|
||||
CIFS:
|
||||
|
||||
networks:
|
||||
node-red-net:
|
Loading…
Reference in New Issue
Block a user