version: "3.7" services: ########################################################################### ########################################################################### ## ## Docker Compose File: Dependancy Services ## Function: Run Dependancies Services before starting secondary services ## ########################################################################### ########################################################################### mariadb: image: lscr.io/linuxserver/mariadb container_name: mariadb network_mode: bridge restart: unless-stopped volumes: - /mnt/user/appdata/mariadb:/config:rw ports: - 3306:3306/tcp environment: - TZ=America/New_York - HOST_OS=Unraid - HOST_HOSTNAME=Gringotts - HOST_CONTAINERNAME=mariadb - MYSQL_ROOT_PASSWORD=freemind596 - MYSQL_DATABASE=firefly - MYSQL_USER=morphon - MYSQL_PASSWORD=freemind596 - PUID=$(PUID:?err) - PGID=$(PGID:?err) - UMASK=022 labels: - net.unraid.docker.managed=dockerman - net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mariadb-logo.png' healthcheck: test: "mariadb --user=${MYSQL_ROOT_USER} --password=${MYSQL_ROOT_PASSWORD} --execute='SHOW DATABASES' || exit 1" interval: 10s timeout: 10s retries: 12 start_period: 20s postgres: image: postgres:15 container_name: postgresql15 network_mode: bridge restart: unless-stopped volumes: - /mnt/cache/appdata/postgresql15:/var/lib/postgresql/data:rw ports: - 5432:5432/tcp environment: - TZ=America/New_York - HOST_OS=Unraid - HOST_HOSTNAME=Gringotts - HOST_CONTAINERNAME=postgresql15 - POSTGRES_PASSWORD=freemind596 - POSTGRES_USER=morphon - POSTGRES_DB=gamevault labels: - net.unraid.docker.managed=dockerman - net.unraid.docker.icon='https://github.com/juusujanar/unraid-templates/raw/master/img/PostgreSQL-logo.png' healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 30s timeout: 30s retries: 5 redis: image: redis container_name: Redis network_mode: bridge restart: unless-stopped ports: - 6379:6379/tcp environment: - TZ=America/New_York - HOST_OS=Unraid - HOST_HOSTNAME=Gringotts - HOST_CONTAINERNAME=Redis labels: - net.unraid.docker.managed=dockerman - net.unraid.docker.icon='https://raw.githubusercontent.com/juusujanar/unraid-templates/master/img/Redis-logo.png' healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 1s timeout: 3s retries: 30 tika: image: ghcr.io/paperless-ngx/tika:latest container_name: Apache-Tika-Server network_mode: bridge restart: unless-stopped ports: - 9998:9998/tcp environment: - TZ=America/New_York - HOST_OS=Unraid - HOST_HOSTNAME=Gringotts - HOST_CONTAINERNAME=Apache-Tika-Server labels: - net.unraid.docker.managed=dockerman healthcheck: test: " " interval: 15s timeout: 15s retries: 5 gotenberg: image: gotenberg/gotenberg container_name: gotenberg network_mode: bridge restart: unless-stopped ports: - 3000:3000/tcp environment: - TZ=America/New_York - HOST_OS=Unraid - HOST_HOSTNAME=Gringotts - HOST_CONTAINERNAME=gotenberg labels: - net.unraid.docker.managed=dockerman command: gotenberg --chromium-disable-javascript=true --chromium-allow-list=file:///tmp/.* healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/version"] interval: 15s timeout: 15s retries: 5