Added base directories, configs, and script

This commit is contained in:
Allen
2023-07-27 18:05:35 -05:00
commit e2006ff020
8 changed files with 373 additions and 0 deletions

View File

@ -0,0 +1,27 @@
version: '3'
services:
$SERVICE_NAME:
user: "${PUID}:${PGID}"
container_name: $SERVICE_NAME
restart: unless-stopped
image: USER/IMAGE:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.$SERVICE_NAME.entryPoints=https"
- "traefik.http.routers.$SERVICE_NAME.rule=Host(`$SUBDOMAIN.$DEFAULT_DOMAIN`)"
- "traefik.http.routers.$SERVICE_NAME.tls=true"
- "traefik.http.routers.$SERVICE_NAME.service="
- "traefik.http.services.$SERVICE_NAME.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"
- "traefik.http.routers.$SERVICE_NAME.middlewares=authelia@docker" # Authelia Auth Support
networks:
- proxy
volumes:
- /data/docker/volumes/$SERVICE_NAME/data:/data
environment:
- TZ=America/Chicago
networks:
proxy:
external: true

View File

@ -0,0 +1,4 @@
#!/bin/bash
CURRENT_PATH="$(dirname -- "${BASH_SOURCE[0]}")"
docker-compose -f $CURRENT_PATH/docker-compose.yml down

View File

@ -0,0 +1,12 @@
#!/bin/bash
set -a #exports all variables and sourced variables
CURRENT_PATH="$(dirname -- "${BASH_SOURCE[0]}")"
source $VARIABLES_DIR
source $CURRENT_PATH/vars
if [[ "$RUN_PULL_CONTAINER" == "Y" ]]; then
docker-compose -f $CURRENT_PATH/docker-compose.yml pull
fi
docker-compose -f $CURRENT_PATH/docker-compose.yml down
docker-compose -f $CURRENT_PATH/docker-compose.yml up -d

11
data/docker/default/compose/up Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -a #exports all variables and sourced variables
CURRENT_PATH="$(dirname -- "${BASH_SOURCE[0]}")"
source $VARIABLES_DIR
source $CURRENT_PATH/vars
if [[ "$RUN_PULL_CONTAINER" == "Y" ]]; then
docker-compose -f $CURRENT_PATH/docker-compose.yml pull
fi
docker-compose -f $CURRENT_PATH/docker-compose.yml up -d

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
PUID=0
PGID=1000
SUBDOMAIN=""