Compare commits
7 Commits
e71fef338a
...
f25f1f8297
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f25f1f8297 | ||
|
|
aff55b0335 | ||
|
|
7443835a05 | ||
|
|
cdfd6a6fa6 | ||
|
|
fd79eec04b | ||
|
|
d6b1a330c7 | ||
|
|
0a3e693a08 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
venv
|
||||
.vscode/settings.json
|
||||
.vscode/
|
||||
n0xb0x.code-workspace
|
||||
|
||||
@ -16,6 +16,11 @@ Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/bitcoin/.bitcoin:Z
|
||||
Restart=always
|
||||
# Extend Timeout to allow time to pull the image
|
||||
TimeoutStartSec=900
|
||||
TimeoutStopSec=300
|
||||
HealthCmd=/bin/sh -c "bitcoin-cli getblockchaininfo || exit 1"
|
||||
HealthInterval=180s
|
||||
HealthRetries=5
|
||||
HealthStartPeriod=1000s
|
||||
# ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page.
|
||||
# ExecStartPre=/usr/share/mincontainer/setup.sh
|
||||
|
||||
|
||||
@ -6,8 +6,8 @@ WORKDIR /app
|
||||
|
||||
RUN microdnf update -y \
|
||||
&& microdnf install -y wget tar gzip nss-tools \
|
||||
&& wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_${VERSION}_linux_amd64.tar.gz \
|
||||
&& wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_${VERSION}_checksums.txt \
|
||||
&& wget https://github.com/caddyserver/caddy/releases/download/v${VERSION}/caddy_${VERSION}_linux_amd64.tar.gz \
|
||||
&& wget https://github.com/caddyserver/caddy/releases/download/v${VERSION}/caddy_${VERSION}_checksums.txt \
|
||||
&& sha512sum --ignore-missing --check caddy_${VERSION}_checksums.txt \
|
||||
&& tar xf caddy_${VERSION}_linux_amd64.tar.gz \
|
||||
&& rm -f caddy_${VERSION}_linux.amd64.tar.gz LICENSE README.md caddy_${VERSION}_checksums.txt \
|
||||
|
||||
@ -4,7 +4,7 @@ Description=Core Lightning Server
|
||||
[Container]
|
||||
Image={{ registry_url }}/clightning:{{ clightning_version }}
|
||||
PodmanArgs=--pod bitcoin-pod
|
||||
Exec=--bitcoin-rpcuser={{bitcoin_rpcuser}} --bitcoin-rpcpassword={{bitcoin_rpcpassword}} --clnrest-port=3001 --clnrest-host=0.0.0.0 --clnrest-certs=/root/.lightning
|
||||
Exec=--pid-file=/root/.lightning/lightning.pid --bitcoin-rpcuser={{bitcoin_rpcuser}} --bitcoin-rpcpassword={{bitcoin_rpcpassword}} --clnrest-port=3001 --clnrest-host=0.0.0.0 --clnrest-certs=/root/.lightning
|
||||
|
||||
# Use volume
|
||||
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z
|
||||
|
||||
@ -35,4 +35,4 @@ ENV LNBITS_HOST="0.0.0.0"
|
||||
|
||||
EXPOSE $LNBITS_PORT
|
||||
|
||||
CMD ["sh", "-c", "poetry run lnbits --port $LNBITS_PORT --host $LNBITS_HOST"]
|
||||
CMD ["sh", "-c", "poetry install && poetry run lnbits --port $LNBITS_PORT --host $LNBITS_HOST"]
|
||||
|
||||
15
roles/apps/templates/nodered/nodered-node.container.j2
Normal file
15
roles/apps/templates/nodered/nodered-node.container.j2
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Node-Red Container
|
||||
After=network-online.target
|
||||
|
||||
[Container]
|
||||
Image=docker.io/nodered/node-red:4.0.2-22
|
||||
ContainerName=node-red
|
||||
Volume=nodered:/data:Z
|
||||
PublishPort=0.0.0.0:1880:1880
|
||||
|
||||
[Service]
|
||||
Restart=Always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
17
roles/apps/templates/pgadmin/pgadmin-node.container.j2
Normal file
17
roles/apps/templates/pgadmin/pgadmin-node.container.j2
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=PGAdmin Database Tool
|
||||
After=network-online.target
|
||||
|
||||
[Container]
|
||||
Image=docker.io/dpage/pgadmin4:8
|
||||
ContainerName=pgadmin
|
||||
Volume=pgadmin:/var/lib/pgadmin:Z
|
||||
PublishPort=0.0.0.0:5050:80
|
||||
Environment=PGADMIN_DEFAULT_PASSWORD=monarc
|
||||
Environment=PGADMIN_DEFAULT_EMAIL=admin@monarc.systems
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
17
roles/apps/templates/postgres/postgres-node.container.j2
Normal file
17
roles/apps/templates/postgres/postgres-node.container.j2
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=PostgreSQL 16 Container
|
||||
|
||||
[Container]
|
||||
Image=docker.io/library/postgres:16
|
||||
ContainerName=postgresql
|
||||
Environment=POSTGRES_USER=monarc
|
||||
Environment=POSTGRES_PASSWORD=monarc
|
||||
Environment=POSTGRES_DB=novusdb
|
||||
Volume=postgresql:/var/lib/postgresql/data
|
||||
PublishPort=0.0.0.0:5432:5432
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target default.target
|
||||
@ -70,6 +70,15 @@
|
||||
state: started
|
||||
enabled: true
|
||||
tags: config
|
||||
|
||||
- name: Enable libvirtd Service
|
||||
become: true
|
||||
become_method: sudo
|
||||
ansible.builtin.systemd_service:
|
||||
name: libvirtd
|
||||
state: started
|
||||
enabled: true
|
||||
tags: config
|
||||
|
||||
- name: Enable mdns in Firewall
|
||||
become: true
|
||||
|
||||
@ -41,9 +41,15 @@
|
||||
- cockpit-ostree
|
||||
- cockpit-podman
|
||||
- cockpit-storaged
|
||||
- cockpit-machines
|
||||
- zerotier-one
|
||||
- python3-pip
|
||||
- smartmontools
|
||||
- qemu-kvm
|
||||
- qemu-system-x86
|
||||
- libvirt-daemon-driver-qemu
|
||||
- libvirt-client
|
||||
- virt-install
|
||||
tags: install
|
||||
|
||||
- name: Install local tools
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user