syncthing
This commit is contained in:
parent
8c0b281afb
commit
5aa9f38cb9
5 changed files with 190 additions and 0 deletions
38
services/gitlab/compose-gitlab.yaml
Normal file
38
services/gitlab/compose-gitlab.yaml
Normal file
|
|
@ -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
|
||||
16
services/hass/compose-hass.yaml
Normal file
16
services/hass/compose-hass.yaml
Normal file
|
|
@ -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"
|
||||
46
services/minecraft/compose-minecraft.yaml
Normal file
46
services/minecraft/compose-minecraft.yaml
Normal file
|
|
@ -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
|
||||
|
||||
58
services/syncthing/syncthing-deployment.yaml
Normal file
58
services/syncthing/syncthing-deployment.yaml
Normal file
|
|
@ -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
|
||||
32
services/syncthing/syncthing-service.yaml
Normal file
32
services/syncthing/syncthing-service.yaml
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue