From d81f7e8bc8e2a7d0a8d2deafcff2b3f5d0f491bb Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 22 Aug 2024 20:53:12 -0400 Subject: [PATCH] add wikijs --- docker/arm/docker-compose.yml | 27 +++++++++++++++++++++++++++ terraform/k3s-master.tf | 1 + terraform/k3s-master2.tf | 1 + terraform/k3s-master3.tf | 1 + 4 files changed, 30 insertions(+) diff --git a/docker/arm/docker-compose.yml b/docker/arm/docker-compose.yml index e5aa54e..cc30f65 100644 --- a/docker/arm/docker-compose.yml +++ b/docker/arm/docker-compose.yml @@ -154,7 +154,33 @@ services: - 22000:22000/udp - 21027:21027/udp restart: unless-stopped + + wiki-db: + image: postgres:15-alpine + environment: + POSTGRES_DB: wiki + POSTGRES_PASSWORD: $DB_PASS + POSTGRES_USER: wikijs + logging: + driver: "none" + restart: unless-stopped + volumes: + - db-data:/var/lib/postgresql/data + wiki: + image: ghcr.io/requarks/wiki:2.5.303 + depends_on: + - wiki-db + environment: + DB_TYPE: postgres + DB_HOST: wiki-db + DB_PORT: 5432 + DB_USER: wikijs + DB_PASS: $DB_PASS + DB_NAME: wiki + restart: unless-stopped + ports: + - "1234:3000" networks: gitea_main: @@ -163,3 +189,4 @@ networks: volumes: linkstack: n8n_data: + db-data: diff --git a/terraform/k3s-master.tf b/terraform/k3s-master.tf index a3a59bb..7229c72 100644 --- a/terraform/k3s-master.tf +++ b/terraform/k3s-master.tf @@ -6,6 +6,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" { name = "K3s-Master" description = "Kubernetes master" tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"] + started = false agent { enabled = true # read 'Qemu guest agent' section, change to true only when ready diff --git a/terraform/k3s-master2.tf b/terraform/k3s-master2.tf index 64da7eb..2b640df 100644 --- a/terraform/k3s-master2.tf +++ b/terraform/k3s-master2.tf @@ -6,6 +6,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master2" { name = "K3s-Master2" description = "Kubernetes Master" tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"] + started = false agent { enabled = true # read 'Qemu guest agent' section, change to true only when ready diff --git a/terraform/k3s-master3.tf b/terraform/k3s-master3.tf index de08861..19eb715 100644 --- a/terraform/k3s-master3.tf +++ b/terraform/k3s-master3.tf @@ -6,6 +6,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master3" { name = "K3s-Master3" description = "Kubernetes master" tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"] + started = false agent { enabled = true # read 'Qemu guest agent' section, change to true only when ready