feat(database): Komodo-ready database stack

Secrets to ${VAR} (Komodo stack env), strip Unraid template noise
(mac/hostname/PATH/unraid labels), normalize restart to unless-stopped.
Add phpmyadmin and Redis services from live container configs.
This commit is contained in:
Arnout van Westen committed 2026-10-02 16:12:41 +02:00
1 parent 74bdd0f776
commit 8f9f56de5f
1 file changed
+58 -79
+58 -79
View File
@@ -1,121 +1,65 @@
version: "3.6"
services:
Postgres14:
command:
- "postgres"
container_name: "Postgres14"
entrypoint:
- "docker-entrypoint.sh"
command:
- "postgres"
environment:
- "HOST_HOSTNAME=Atlas"
- "HOST_CONTAINERNAME=Postgres14"
- "POSTGRES_PASSWORD=postgres"
- "POSTGRES_USER=postgres"
- "POSTGRES_DB=postgres"
- "TZ=Europe/Berlin"
- "HOST_OS=Unraid"
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- "GOSU_VERSION=1.19"
- "LANG=en_US.utf8"
- "PG_MAJOR=14"
- "PG_VERSION=14.22"
- "PG_SHA256=f57938ad30067077720277f6d7db05aafc07d1545efd2ed82f199ba828a7ad34"
- "DOCKER_PG_LLVM_DEPS=llvm19-dev \t\tclang19"
- "PGDATA=/var/lib/postgresql/data"
hostname: "c3a5bda48654"
image: "postgres:14-alpine"
ipc: "private"
labels:
net.unraid.docker.icon: "https://github.com/juusujanar/unraid-templates/raw/master/img/PostgreSQL-logo.png"
net.unraid.docker.managed: "dockerman"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
mac_address: "86:3e:cf:e7:e3:80"
network_mode: "bridge"
ports:
- "5433:5432/tcp"
restart: "unless-stopped"
volumes:
- "/mnt/cache/appdata/postgres14:/var/lib/postgresql/data"
working_dir: "/"
mariadb:
container_name: "mariadb"
entrypoint:
- "/init"
environment:
- "HOST_OS=Unraid"
- "HOST_CONTAINERNAME=mariadb"
- "MYSQL_DATABASE=wordpress"
- "MYSQL_PASSWORD=cDon7wofuJXtFsrWn2TfAhqA"
- "MYSQL_PASSWORD=${MARIADB_PASSWORD}"
- "MYSQL_USER=wordpress"
- "MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}"
- "UMASK=022"
- "TZ=Europe/Berlin"
- "HOST_HOSTNAME=Atlas"
- "MYSQL_ROOT_PASSWORD=BdUXcTAorkV7MD4UiRQAPHUj"
- "MYSQL_USER=wordpress"
- "REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql"
- "PUID=99"
- "PGID=100"
- "PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- "PS1=$$(whoami)@$$(hostname):$$(pwd)\\$$ "
- "HOME=/root"
- "TERM=xterm"
- "MYSQL_DIR=/config"
- "DATADIR=/config/databases"
- "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0"
- "S6_VERBOSITY=1"
- "S6_STAGE2_HOOK=/docker-mods"
- "VIRTUAL_ENV=/lsiopy"
- "LSIO_FIRST_PARTY=true"
- "MYSQL_DIR=/config"
- "DATADIR=/config/databases"
hostname: "e754e2dd728b"
image: "lscr.io/linuxserver/mariadb"
ipc: "private"
labels:
build_version: "Linuxserver.io version:- 11.4.10-r0-ls215 Build-date:- 2026-05-05T09:33:04+00:00"
maintainer: "thelamer,nemchik"
net.unraid.docker.icon: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mariadb-logo.png"
net.unraid.docker.managed: "dockerman"
net.unraid.docker.webui: "http://[IP]:[PORT:3306]"
org.opencontainers.image.authors: "linuxserver.io"
org.opencontainers.image.created: "2026-05-05T09:33:04+00:00"
org.opencontainers.image.description: "[Mariadb](https://mariadb.org/) is one of the most popular\
\ database servers. Made by the original developers of MySQL."
org.opencontainers.image.documentation: "https://docs.linuxserver.io/images/docker-mariadb"
org.opencontainers.image.licenses: "GPL-3.0-only"
org.opencontainers.image.ref.name: "a5d07132533a00adf552ba46409433c25a9b0c77"
org.opencontainers.image.revision: "a5d07132533a00adf552ba46409433c25a9b0c77"
org.opencontainers.image.source: "https://github.com/linuxserver/docker-mariadb"
org.opencontainers.image.title: "Mariadb"
org.opencontainers.image.url: "https://github.com/linuxserver/docker-mariadb/packages"
org.opencontainers.image.vendor: "linuxserver.io"
org.opencontainers.image.version: "11.4.10-r0-ls215"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
mac_address: "a6:06:8a:c4:05:ea"
network_mode: "bridge"
ports:
- "3306:3306/tcp"
restart: "unless-stopped"
volumes:
- "/mnt/user/appdata/mariadb:/config"
working_dir: "/"
@@ -127,35 +71,70 @@ services:
- "PGADMIN_CONFIG_AUTHENTICATION_SOURCES=['oauth2', 'internal']"
- "PGADMIN_LISTEN_ADDRESS=0.0.0.0"
- "TZ=Europe/Berlin"
- "HOST_OS=Unraid"
- "HOST_HOSTNAME=Atlas"
- "HOST_CONTAINERNAME=pgadmin4"
- "PGADMIN_DEFAULT_EMAIL=arnoutvw@gmail.com"
- "PGADMIN_DEFAULT_PASSWORD=Xo48Yak8"
- "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- "PYTHON_VERSION=3.14.4"
- "PYTHON_SHA256=d923c51303e38e249136fc1bdf3568d56ecb03214efdef48516176d3d7faaef8"
- "PYTHONPATH=/pgadmin4"
hostname: "9bcce603f7ed"
- "PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}"
image: "dpage/pgadmin4"
ipc: "private"
labels:
net.unraid.docker.icon: "https://github.com/FoxxMD/unraid-docker-templates/raw/master/icons/pgadmin4.png"
net.unraid.docker.managed: "dockerman"
net.unraid.docker.webui: "http://[IP]:[PORT:80]/"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
mac_address: "96:15:d1:f2:92:c1"
network_mode: "bridge"
ports:
- "8792:80/tcp"
user: "5050"
restart: "unless-stopped"
volumes:
- "/mnt/cache/appdata/pgadmin4/config_local.py:/pgadmin4/config_local.py"
- "/mnt/user/appdata/pgadmin4:/var/lib/pgadmin"
working_dir: "/pgadmin4"
phpmyadmin:
container_name: "phpmyadmin"
entrypoint:
- "/init"
environment:
- "PMA_ARBITRARY=1"
- "PMA_ABSOLUTE_URI=http://192.168.10.144:7780"
- "PHP_INI_SCAN_DIR=:/config/php"
- "PUID=99"
- "PGID=100"
- "UMASK=022"
- "TZ=Europe/Berlin"
- "MAX_EXECUTION_TIME=600"
- "MEMORY_LIMIT=512M"
- "UPLOAD_LIMIT=8192K"
image: "lscr.io/linuxserver/phpmyadmin"
ipc: "private"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
network_mode: "bridge"
ports:
- "7780:80/tcp"
restart: "unless-stopped"
volumes:
- "/mnt/user/appdata/phpmyadmin:/config"
working_dir: "/"
Redis:
container_name: "Redis"
command:
- "redis-server"
environment:
- "TZ=Europe/Berlin"
image: "redis"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
network_mode: "bridge"
ports:
- "6379:6379/tcp"
restart: "unless-stopped"