Compare commits

...

7 Commits

Author SHA1 Message Date
b0xxer
f25f1f8297 * Added pid file declaration to start command for clightning
* Added poetry install for lnbits
2025-04-11 07:38:34 -05:00
b0xxer
aff55b0335 * Updated gitignore 2025-04-10 06:58:01 -05:00
b0xxer
7443835a05 * Added HealthCmd, HealthInterval, HealthRetries, and HealthStartPeriod
to bitcoin-node-container
2025-04-10 06:42:41 -05:00
b0xxer
cdfd6a6fa6 Added TimeoutStopSec=300 to bitcoin-node container 2025-04-10 05:56:49 -05:00
b0xxer
fd79eec04b * Added nodered, pgadmin, and postgresql container files 2025-04-09 14:20:48 -05:00
b0xxer
d6b1a330c7 * Added virt-install 2025-04-09 12:52:09 -05:00
b0xxer
0a3e693a08 * Fixed caddy Containerfile version error
* Added qemu-kvm, libvirt, cockpit-machines, etc
* Enabled libvirtd service
2025-04-09 12:13:30 -05:00
10 changed files with 75 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
venv venv
.vscode/settings.json .vscode/settings.json
.vscode/
n0xb0x.code-workspace

View File

@ -16,6 +16,11 @@ Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/bitcoin/.bitcoin:Z
Restart=always Restart=always
# Extend Timeout to allow time to pull the image # Extend Timeout to allow time to pull the image
TimeoutStartSec=900 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 flag and other systemd commands can go here, see systemd.unit(5) man page.
# ExecStartPre=/usr/share/mincontainer/setup.sh # ExecStartPre=/usr/share/mincontainer/setup.sh

View File

@ -6,8 +6,8 @@ WORKDIR /app
RUN microdnf update -y \ RUN microdnf update -y \
&& microdnf install -y wget tar gzip nss-tools \ && 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/v${VERSION}/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}_checksums.txt \
&& sha512sum --ignore-missing --check caddy_${VERSION}_checksums.txt \ && sha512sum --ignore-missing --check caddy_${VERSION}_checksums.txt \
&& tar xf caddy_${VERSION}_linux_amd64.tar.gz \ && tar xf caddy_${VERSION}_linux_amd64.tar.gz \
&& rm -f caddy_${VERSION}_linux.amd64.tar.gz LICENSE README.md caddy_${VERSION}_checksums.txt \ && rm -f caddy_${VERSION}_linux.amd64.tar.gz LICENSE README.md caddy_${VERSION}_checksums.txt \

View File

@ -4,7 +4,7 @@ Description=Core Lightning Server
[Container] [Container]
Image={{ registry_url }}/clightning:{{ clightning_version }} Image={{ registry_url }}/clightning:{{ clightning_version }}
PodmanArgs=--pod bitcoin-pod 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 # Use volume
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z

View File

@ -35,4 +35,4 @@ ENV LNBITS_HOST="0.0.0.0"
EXPOSE $LNBITS_PORT 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"]

View 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

View 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

View 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

View File

@ -70,6 +70,15 @@
state: started state: started
enabled: true enabled: true
tags: config 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 - name: Enable mdns in Firewall
become: true become: true

View File

@ -41,9 +41,15 @@
- cockpit-ostree - cockpit-ostree
- cockpit-podman - cockpit-podman
- cockpit-storaged - cockpit-storaged
- cockpit-machines
- zerotier-one - zerotier-one
- python3-pip - python3-pip
- smartmontools - smartmontools
- qemu-kvm
- qemu-system-x86
- libvirt-daemon-driver-qemu
- libvirt-client
- virt-install
tags: install tags: install
- name: Install local tools - name: Install local tools