diff --git a/services/gitlab/compose-gitlab.yaml b/services/gitlab/compose-gitlab.yaml new file mode 100644 index 0000000..82b4fd8 --- /dev/null +++ b/services/gitlab/compose-gitlab.yaml @@ -0,0 +1,38 @@ +--- +services: + gitlab: + image: gitlab/gitlab-ce + container_name: gitlab + restart: always + # hostname: 'lab.astralogical.duckdns.org' + hostname: 'lab.mynest.love' + environment: + GITLAB_OMNIBUS_CONFIG: | + external_url 'https://lab.mynest.love' + gitlab_rails['gitlab_shell_ssh_port'] = 2222 + nginx['listen_https'] = false + nginx['redirect_http_to_https'] = true + gitlab_sshd['enable'] = true + gitlab_sshd['listen_address'] = '[::]:2222' + gitlab_sshd['proxy_protocol'] = true + gitlab_sshd['proxy_policy'] = "use" + ports: + - '8092:443' + - '2222:22' + volumes: + - /docker/gitlab/config:/etc/gitlab + - /docker/gitlab/logs:/var/log/gitlab + - /docker/gitlab/data:/var/opt/gitlab + shm_size: '256m' + logging: + driver: "json-file" + options: + max-size: "512m" + + runner: + image: gitlab/gitlab-runner + container_name: gitlab-runner + restart: always + volumes: + - /docker/gitlab-runner/config:/etc/gitlab-runner + - /var/run/docker.sock:/var/run/docker.sock diff --git a/services/hass/compose-hass.yaml b/services/hass/compose-hass.yaml new file mode 100644 index 0000000..09b7b82 --- /dev/null +++ b/services/hass/compose-hass.yaml @@ -0,0 +1,16 @@ +--- +name: hass +services: + home-assistant: + container_name: homeassistant + privileged: true + restart: unless-stopped + environment: + - TZ=America/New_York + volumes: + - /docker/hass:/config + - /run/dbus:/run/dbus:ro + network_mode: host + image: ghcr.io/home-assistant/home-assistant:stable + ports: + - "8123:8123/tcp" diff --git a/services/minecraft/compose-minecraft.yaml b/services/minecraft/compose-minecraft.yaml new file mode 100644 index 0000000..54c0171 --- /dev/null +++ b/services/minecraft/compose-minecraft.yaml @@ -0,0 +1,46 @@ +--- +services: + Monifactory: + image: itzg/minecraft-server:java17 + tty: true + stdin_open: true + ports: + - "25566:25565" + environment: + EULA: "TRUE" + MEMORY: 10G + VERSION: 1.20.1 + TYPE: "Forge" + ALLOW_FLIGHT: "TRUE" + ENABLE_WHITELIST: "TRUE" + WHITELIST: "AstraLogicall" + LEVEL: "Sky Birb" + SERVER_NAME: "Sky Birb" + MOTD: "Tweet!" + DIFFICULTY: "Peaceful" + volumes: + - /docker/minecraft/monifactory:/data + restart: always + + Keegan-block: + image: itzg/minecraft-server:java21 + tty: true + stdin_open: true + ports: + - "25565:25565" + environment: + EULA: "TRUE" + MEMORY: 12G + VERSION: 1.20.1 + TYPE: "Forge" + ALLOW_FLIGHT: "TRUE" + ENABLE_WHITELIST: "TRUE" + WHITELIST: "AstraLogicall" + LEVEL: "Sky Birb" + SERVER_NAME: "Blomk" + MOTD: "Tweet!" + DIFFICULTY: "Easy" + volumes: + - /docker/minecraft/keegan-block:/data + restart: always + diff --git a/services/syncthing/syncthing-deployment.yaml b/services/syncthing/syncthing-deployment.yaml new file mode 100644 index 0000000..07c904b --- /dev/null +++ b/services/syncthing/syncthing-deployment.yaml @@ -0,0 +1,58 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + kompose.cmd: kompose convert -f compose-syncthing.yaml + kompose.version: 1.38.0 (HEAD) + labels: + io.kompose.service: syncthing + name: syncthing +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: syncthing + strategy: + type: Recreate + template: + metadata: + annotations: + kompose.cmd: kompose convert -f compose-syncthing.yaml + kompose.version: 1.38.0 (HEAD) + labels: + io.kompose.service: syncthing + spec: + containers: + - env: + - name: PGID + value: "1000" + - name: PUID + value: "1000" + - name: TZ + value: Etc/UTC + image: lscr.io/linuxserver/syncthing:latest + name: syncthing + ports: + - containerPort: 8384 + protocol: TCP + - containerPort: 22000 + protocol: TCP + - containerPort: 22000 + protocol: UDP + - containerPort: 21027 + protocol: UDP + volumeMounts: + - mountPath: /config + name: syncthing-config + - mountPath: /data1 + name: syncthing-data + restartPolicy: Always + volumes: + - name: syncthing-config + nfs: + server: birdfeeder2.home.nest + path: /k3s/syncthing + - name: syncthing-data + nfs: + server: birdfeeder1.home.nest + path: /mnt/raid/syncthing diff --git a/services/syncthing/syncthing-service.yaml b/services/syncthing/syncthing-service.yaml new file mode 100644 index 0000000..acbf208 --- /dev/null +++ b/services/syncthing/syncthing-service.yaml @@ -0,0 +1,32 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -f compose-syncthing.yaml + kompose.version: 1.38.0 (HEAD) + labels: + io.kompose.service: syncthing + name: syncthing +spec: + type: NodePort + ports: + - name: "30384" + port: 30384 + targetPort: 8384 + nodePort: 30384 + - name: "32000" + port: 32000 + targetPort: 22000 + nodePort: 32000 + - name: 32000-udp + port: 32000 + protocol: UDP + targetPort: 22000 + nodePort: 32000 + - name: "31027" + port: 31027 + protocol: UDP + targetPort: 21027 + nodePort: 31027 + selector: + io.kompose.service: syncthing