forked from jchomaz/Vulture
Quadlet (WiP)
This commit is contained in:
@@ -26,6 +26,15 @@ podman stop vnode
|
||||
podman stop nanomq
|
||||
podman pod rm vulture
|
||||
|
||||
## Lancement automatique avec Quadlet
|
||||
|
||||
Copier les fichiers du repertoire quadlet vers ~/.config/containers/systemd/
|
||||
|
||||
```
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now vulture.pod
|
||||
```
|
||||
|
||||
## Tip
|
||||
|
||||
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80
|
||||
14
VContainers/quadlet/nanomq.container
Normal file
14
VContainers/quadlet/nanomq.container
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Broker MQTT NanoMQ
|
||||
Requires=vulture.pod
|
||||
After=vulture.pod
|
||||
|
||||
[Container]
|
||||
Image=docker.io/emqx/nanomq:latest
|
||||
ContainerName=nanomq
|
||||
Pod=vulture
|
||||
# Correspond à -v ./VContainers/MQTT/config/nanomq.conf:/etc/nanomq.conf
|
||||
Volume=./VContainers/MQTT/config/nanomq.conf:/etc/nanomq.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=vulture.pod
|
||||
12
VContainers/quadlet/vapp.container
Normal file
12
VContainers/quadlet/vapp.container
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Application Node.js VApp
|
||||
Requires=vulture.pod
|
||||
After=vulture.pod
|
||||
|
||||
[Container]
|
||||
Image=localhost/vapp:latest
|
||||
ContainerName=vapp
|
||||
Pod=vulture
|
||||
|
||||
[Install]
|
||||
WantedBy=vulture.pod
|
||||
12
VContainers/quadlet/vnode.container
Normal file
12
VContainers/quadlet/vnode.container
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Application Node.js VNode
|
||||
Requires=vulture.pod
|
||||
After=vulture.pod
|
||||
|
||||
[Container]
|
||||
Image=localhost/vnode:latest
|
||||
ContainerName=vnode
|
||||
Pod=vulture
|
||||
|
||||
[Install]
|
||||
WantedBy=vulture.pod
|
||||
14
VContainers/quadlet/vulture.pod
Normal file
14
VContainers/quadlet/vulture.pod
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Pod Vulture pour le Broker MQTT et les Applications Node
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Pod]
|
||||
# Mappings de ports : Host:Container (ces ports sont partagés par tous les conteneurs)
|
||||
PublishPort=8080:80
|
||||
PublishPort=1883:1883
|
||||
PublishPort=8083:8083
|
||||
PublishPort=8883:8883
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user