Track server config (selected files)
This commit is contained in:
16
etc/systemd/system/gitea.service
Normal file
16
etc/systemd/system/gitea.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Gitea (Docker Compose)
|
||||
Requires=docker.service
|
||||
After=docker.service network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/gitea
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
16
etc/systemd/system/monitoring.service
Normal file
16
etc/systemd/system/monitoring.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Monitoring Stack (Prometheus + Grafana)
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/opt/monitoring
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
15
etc/systemd/system/nextcloud.service
Normal file
15
etc/systemd/system/nextcloud.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Nextcloud Docker Compose Service
|
||||
Requires=docker.service
|
||||
After=docker.service network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/opt/nextcloud
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
ExecReload=/usr/bin/docker compose restart
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
21
etc/systemd/system/proxmox-vm.service
Normal file
21
etc/systemd/system/proxmox-vm.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Proxmox VM (QEMU)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-cpu host \
|
||||
-m 4096 \
|
||||
-smp 4 \
|
||||
-drive file=/root/proxmox-disk.qcow2,format=qcow2 \
|
||||
-boot order=c \
|
||||
-nographic \
|
||||
-netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::8006-:8006 \
|
||||
-device virtio-net-pci,netdev=net0
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
15
etc/systemd/system/vaultwarden.service
Normal file
15
etc/systemd/system/vaultwarden.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Vaultwarden (Bitwarden in Rust)
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/opt/vaultwarden
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user