add docker compose config as IaC

This commit is contained in:
tylen 2025-01-08 20:23:14 +00:00
parent df5721e728
commit dfb949b441
6 changed files with 47 additions and 2 deletions

View File

@ -40,9 +40,9 @@ Address,Services and Ports
192.168.100.61,vm-tools-100-55 (reserved) 192.168.100.61,vm-tools-100-55 (reserved)
192.168.100.60,vm-tools-100-55 (reserved) 192.168.100.60,vm-tools-100-55 (reserved)
192.168.100.59,vm-tools-100-55 (reserved) 192.168.100.59,vm-tools-100-55 (reserved)
192.168.100.58,nextcloud-new (8081) 192.168.100.58,vm-tools-100-55 (reserved)
192.168.100.57,liisa-project-database (3306) 192.168.100.57,liisa-project-database (3306)
192.168.100.56,collabora (3000) 192.168.100.56,audiobookshelf (13378)
192.168.100.55,"vm-tools-100-55, Portainer (9443)" 192.168.100.55,"vm-tools-100-55, Portainer (9443)"
192.168.100.54, 192.168.100.54,
192.168.100.53, 192.168.100.53,

1 Address Services and Ports
40 192.168.100.61 vm-tools-100-55 (reserved)
41 192.168.100.60 vm-tools-100-55 (reserved)
42 192.168.100.59 vm-tools-100-55 (reserved)
43 192.168.100.58 nextcloud-new (8081) vm-tools-100-55 (reserved)
44 192.168.100.57 liisa-project-database (3306)
45 192.168.100.56 collabora (3000) audiobookshelf (13378)
46 192.168.100.55 vm-tools-100-55, Portainer (9443)
47 192.168.100.54
48 192.168.100.53

View File

@ -0,0 +1,3 @@
DOCKER_PARENT_PATH="/home/${USER}/docker"
SVC_PATH="${DOCKER_PARENT_PATH}/audiobookshelf"
MEDIA_PATH="/home/${USER}/Media"

View File

@ -0,0 +1,12 @@
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:latest
ports:
- 192.168.100.56:13378:80
volumes:
- ${MEDIA_PATH}/Books/Audiobooks:/audiobooks
- ${MEDIA_PATH}/Podcasts:/podcasts
- ${SVC_PATH}/config:/config
- ${SVC_PATH}/metadata>:/metadata
environment:
- TZ=America/Toronto

View File

@ -0,0 +1,10 @@
#! /usr/bin/bash
source ./.env
set -xe
mkdir -p "${DOCKER_PARENT_PATH}"
mkdir -p "${SVC_PATH}"
mkdir -p "${SVC_PATH}/config"
mkdir -p "${SVC_PATH}/metadata"

View File

@ -0,0 +1,2 @@
ROOT_PASSWORD="2F&B7yUoaE9F"
USER_PASSWORD="ippoolmanager"

View File

@ -0,0 +1,18 @@
version: '3.3'
services:
db:
image: mysql:latest
restart: always
environment:
MYSQL_DATABASE: 'database'
MYSQL_USER: 'davylis'
MYSQL_PASSWORD: '${USER_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${ROOT_PASSWORD}'
ports:
- '192.168.100.57:3306:3306'
expose:
- '3306'
volumes:
- my-db:/var/lib/mysql
volumes:
my-db: