mirror of
https://github.com/runyanjake/olomana.git
synced 2025-10-05 05:37:29 -07:00
Update for pwspool zfs
This commit is contained in:
parent
9f6f86b38c
commit
63443b546f
@ -34,13 +34,15 @@ Olomana is based off of the latest stable version of Ubuntu Server (https://ubun
|
|||||||
|
|
||||||
Managing disk partitions using `gdisk` and configuring drives for automatic mounting using the `fstab` file. Example: https://techguides.yt/guides/how-to-partition-format-and-auto-mount-disk-on-ubuntu-20-04/
|
Managing disk partitions using `gdisk` and configuring drives for automatic mounting using the `fstab` file. Example: https://techguides.yt/guides/how-to-partition-format-and-auto-mount-disk-on-ubuntu-20-04/
|
||||||
|
|
||||||
|
General rule of thumb is archival data/things that we don't want to lose live in the ZFS pool, while more elphemeral data/data we don't care about losing lives in /
|
||||||
|
|
||||||
#### Drives
|
#### Drives
|
||||||
|
|
||||||
Created a `/data/write` and `/data/persistent` mount point that my config is based on. Applications that write frequently do so to the dedicated drive mounted at `/data/write`, and persistent data is written to `/data/persistent`.
|
Applications that write frequently do so to the dedicated drive mounted at `/data/write`. Prior to ZFS introduction, data was store on drives mounted under /data (persistent, coldstorage, nas).
|
||||||
|
|
||||||
#### ZFS
|
#### ZFS
|
||||||
|
|
||||||
Later, I created a ZFS system to replace non-ephemeral data. It's a ZFS pool using `raidz1`, mounted to /pwspool.
|
Later, I created a ZFS system to replace non-ephemeral data that I want to safeguard under a raid setup. It's a ZFS pool using `raidz1`, mounted to /pwspool.
|
||||||
|
|
||||||
### OpenSSH installation
|
### OpenSSH installation
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "[[HOST_PORT]]:3306"
|
- "[[HOST_PORT]]:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- /data/coldstorage/covid19/mysql:/var/lib/mysql
|
- /pwspool/software/covid19/mysql:/var/lib/mysql
|
||||||
- ./schema:/docker-entrypoint-initdb.d/:ro
|
- ./schema:/docker-entrypoint-initdb.d/:ro
|
||||||
networks:
|
networks:
|
||||||
- covidapp-network
|
- covidapp-network
|
||||||
|
@ -25,7 +25,7 @@ services:
|
|||||||
- gitea_network
|
- gitea_network
|
||||||
- traefik_traefik-network
|
- traefik_traefik-network
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/gitea/gitea:/data
|
- /pwspool/software/gitea/gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
labels:
|
labels:
|
||||||
@ -45,5 +45,5 @@ services:
|
|||||||
- POSTGRES_PASSWORD=[[DATABASE_PASSWD]]
|
- POSTGRES_PASSWORD=[[DATABASE_PASSWD]]
|
||||||
- POSTGRES_DB=[[DATABASE_NAME]]
|
- POSTGRES_DB=[[DATABASE_NAME]]
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/gitea/database:/var/lib/postgresql/data
|
- /pwspool/software/gitea/database:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ services:
|
|||||||
- traefik_traefik-network
|
- traefik_traefik-network
|
||||||
volumes:
|
volumes:
|
||||||
- ./olomana.ini:/etc/grafana/grafana.ini
|
- ./olomana.ini:/etc/grafana/grafana.ini
|
||||||
- /data/coldstorage/grafana_data:/var/lib/grafana
|
- /pwspool/software/grafana:/var/lib/grafana
|
||||||
labels:
|
labels:
|
||||||
- traefik.http.routers.grafana.rule=Host(`[[SITE_URL]]`)
|
- traefik.http.routers.grafana.rule=Host(`[[SITE_URL]]`)
|
||||||
- traefik.http.routers.grafana.tls=true
|
- traefik.http.routers.grafana.tls=true
|
||||||
|
@ -14,7 +14,7 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
user: [[USER]]
|
user: [[USER]]
|
||||||
volumes:
|
volumes:
|
||||||
- /data/coldstorage/jenkins:/var/jenkins_home
|
- /pwspool/software/jenkins:/var/jenkins_home
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /usr/local/bin/docker:/usr/local/bin/docker
|
- /usr/local/bin/docker:/usr/local/bin/docker
|
||||||
labels:
|
labels:
|
||||||
|
@ -20,7 +20,7 @@ services:
|
|||||||
- "[[HOST_PORT_1]]:25565"
|
- "[[HOST_PORT_1]]:25565"
|
||||||
- "[[METRICS_HOST_PORT_1]]:9225"
|
- "[[METRICS_HOST_PORT_1]]:9225"
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/minecraft_creative:/data
|
- /pwspool/games/minecraft/minecraft_creative:/data
|
||||||
environment:
|
environment:
|
||||||
- TYPE=PAPER
|
- TYPE=PAPER
|
||||||
- MEMORY=2G
|
- MEMORY=2G
|
||||||
@ -51,7 +51,7 @@ services:
|
|||||||
- "[[METRICS_HOST_PORT_2]]:9225"
|
- "[[METRICS_HOST_PORT_2]]:9225"
|
||||||
- "[[DYNMAP_PORT]]:8123"
|
- "[[DYNMAP_PORT]]:8123"
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/minecraft_2023:/data
|
- /pwspool/games/minecraft/minecraft_2023:/data
|
||||||
environment:
|
environment:
|
||||||
- TYPE=PAPER
|
- TYPE=PAPER
|
||||||
- MEMORY=4G
|
- MEMORY=4G
|
||||||
@ -82,7 +82,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "[[HOST_PORT_3]]:25565"
|
- "[[HOST_PORT_3]]:25565"
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/minecraft_skyblock:/data
|
- /pwspool/games/minecraft/minecraft_skyblock:/data
|
||||||
environment:
|
environment:
|
||||||
- TYPE=PAPER
|
- TYPE=PAPER
|
||||||
- MEMORY=4G
|
- MEMORY=4G
|
||||||
@ -104,7 +104,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 2565:2565
|
- 2565:2565
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/minecraft_2023/world:/world
|
- /pwspool/games/minecraft/minecraft_2023/world:/world
|
||||||
environment:
|
environment:
|
||||||
- RCON_HOST=127.0.0.1
|
- RCON_HOST=127.0.0.1
|
||||||
- RCON_PORT=[[HOST_PORT_2]]
|
- RCON_PORT=[[HOST_PORT_2]]
|
||||||
|
@ -19,7 +19,7 @@ services:
|
|||||||
- DB_USERNAME=[[DATABASE_USERNAME]]
|
- DB_USERNAME=[[DATABASE_USERNAME]]
|
||||||
- DB_PASSWORD=[[DATABASE_PASSWORD]]
|
- DB_PASSWORD=[[DATABASE_PASSWORD]]
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/monica/app:/var/www/html/storage
|
- /pwspool/software/monica/app:/var/www/html/storage
|
||||||
restart: always
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- traefik.http.routers.monica.rule=Host(`[[SITE_URL]]`)
|
- traefik.http.routers.monica.rule=Host(`[[SITE_URL]]`)
|
||||||
@ -36,6 +36,6 @@ services:
|
|||||||
- MYSQL_USER=[[DATABASE_USERNAME]]
|
- MYSQL_USER=[[DATABASE_USERNAME]]
|
||||||
- MYSQL_PASSWORD=[[DATABASE_PASSWORD]]
|
- MYSQL_PASSWORD=[[DATABASE_PASSWORD]]
|
||||||
volumes:
|
volumes:
|
||||||
- /data/persistent/monica/db:/var/lib/mysql
|
- /pwspool/software/monica/db:/var/lib/mysql
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ services:
|
|||||||
- seccomp:unconfined
|
- seccomp:unconfined
|
||||||
- apparmor:unconfined
|
- apparmor:unconfined
|
||||||
volumes:
|
volumes:
|
||||||
- /data/coldstorage/photoprism/storage:/photoprism/storage
|
- /pwspool/software/photoprism/storage:/photoprism/storage
|
||||||
- /data/coldstorage/photoprism/originals:/photoprism/originals
|
- /pwspool/software/photoprism/originals:/photoprism/originals
|
||||||
environment:
|
environment:
|
||||||
- PHOTOPRISM_ADMIN_USER=[[ADMIN_USER]]
|
- PHOTOPRISM_ADMIN_USER=[[ADMIN_USER]]
|
||||||
- PHOTOPRISM_ADMIN_PASSWORD=[[ADMIN_PASS]]
|
- PHOTOPRISM_ADMIN_PASSWORD=[[ADMIN_PASS]]
|
||||||
@ -48,8 +48,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "[[DIFFERENT_HOST_PORT]]:2342"
|
- "[[DIFFERENT_HOST_PORT]]:2342"
|
||||||
volumes:
|
volumes:
|
||||||
- /data/coldstorage/photoprism/storage:/photoprism/storage
|
- /pwspool/software/photoprism/storage:/photoprism/storage
|
||||||
- /data/coldstorage/photoprism/originals:/photoprism/originals
|
- /pwspool/software/photoprism/originals:/photoprism/originals
|
||||||
environment:
|
environment:
|
||||||
- PHOTOPRISM_READONLY=true
|
- PHOTOPRISM_READONLY=true
|
||||||
- PHOTOPRISM_AUTH_MODE=public
|
- PHOTOPRISM_AUTH_MODE=public
|
||||||
|
Loading…
x
Reference in New Issue
Block a user