From 7f336461f40229d97a851a6dd7e173a115f0f8b6 Mon Sep 17 00:00:00 2001 From: akanealw Date: Sun, 17 Dec 2023 13:21:41 -0600 Subject: [PATCH] first commit --- .env | 18 ++++++++++++++++ .gitignore | 1 + admin/.env | 28 ++++++++++++++++++++++++ admin/.gitignore | 1 + admin/compose.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++++ compose.yml | 0 6 files changed, 103 insertions(+) create mode 100755 .env create mode 100755 .gitignore create mode 100755 admin/.env create mode 100755 admin/.gitignore create mode 100755 admin/compose.yml create mode 100755 compose.yml diff --git a/.env b/.env new file mode 100755 index 0000000..499b23c --- /dev/null +++ b/.env @@ -0,0 +1,18 @@ +#GLOBAL SETTINGS +COMPOSE_HTTP_TIMEOUT=120 +COMPOSE_IGNORE_ORPHANS=1 +DOCKER_CONFIGS=./appdata +DOCKERGID=999 +DOCKERHOSTNAME=DockerServerTest +DOCKERLOGGING_MAXFILE=10 +DOCKERLOGGING_MAXSIZE=200k +SERVERIP=192.168.1.33 +PGID=1000 +PUID=1000 +UMASK=000 +TZ=America/Chicago +ADMIN_USERNAME=akanealw +ADMIN_PASSWORD=8ung1e1! +BACKUP_DIR=/mnt/truenas-backups +MEDIA_DIR=/mnt/truenas-media +STORAGE_DIR=/mnt/truenas-storage diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..5728a2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +appdata/ diff --git a/admin/.env b/admin/.env new file mode 100755 index 0000000..41db1a3 --- /dev/null +++ b/admin/.env @@ -0,0 +1,28 @@ +#GLOBAL SETTINGS +COMPOSE_HTTP_TIMEOUT=120 +COMPOSE_IGNORE_ORPHANS=1 +DOCKER_CONFIGS=./appdata +DOCKERGID=999 +DOCKERHOSTNAME=DockerServerTest +DOCKERLOGGING_MAXFILE=10 +DOCKERLOGGING_MAXSIZE=200k +SERVERIP=192.168.1.33 +PGID=1000 +PUID=1000 +UMASK=000 +TZ=America/Chicago +ADMIN_USERNAME=akanealw +ADMIN_PASSWORD=8ung1e1! +BACKUP_DIR=/mnt/truenas-backups +MEDIA_DIR=/mnt/truenas-media +STORAGE_DIR=/mnt/truenas-storage + +#WATCHTOWER +WATCHTOWER_NOTIFICATIONS=email +WATCHTOWER_NOTIFICATION_EMAIL_FROM=notify.akanealw@gmail.com +WATCHTOWER_NOTIFICATION_EMAIL_TO=akanealw@gmail.com +WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com +WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587 +WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=notify.akanealw@gmail.com +WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=leawkqqpthbwacrf +WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 diff --git a/admin/.gitignore b/admin/.gitignore new file mode 100755 index 0000000..5728a2c --- /dev/null +++ b/admin/.gitignore @@ -0,0 +1 @@ +appdata/ diff --git a/admin/compose.yml b/admin/compose.yml new file mode 100755 index 0000000..b872e49 --- /dev/null +++ b/admin/compose.yml @@ -0,0 +1,55 @@ +version: '3' + +services: + dozzle: + container_name: dozzle + image: amir20/dozzle:latest + environment: + - DOZZLE_ADDR=:1234 + networks: + - reverse-proxy + ports: + - 9999:1234 + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + + portainer: + container_name: portainer + image: portainer/portainer-ce:latest + networks: + - reverse-proxy + ports: + - 9000:9000/tcp + restart: always + volumes: + - ${DOCKER_CONFIGS}/portainer/data:/data + - /var/run/docker.sock:/var/run/docker.sock + - /etc/localtime:/etc/localtime:ro + + watchtower: + container_name: watchtower + image: containrrr/watchtower + environment: + - WATCHTOWER_NOTIFICATIONS=${WATCHTOWER_NOTIFICATIONS} + - WATCHTOWER_NOTIFICATION_TITLE_TAG=${DOCKERHOSTNAME} + - WATCHTOWER_NOTIFICATION_EMAIL_FROM=${WATCHTOWER_NOTIFICATION_EMAIL_FROM} + - WATCHTOWER_NOTIFICATION_EMAIL_TO=${WATCHTOWER_NOTIFICATION_EMAIL_TO} + - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=${WATCHTOWER_NOTIFICATION_EMAIL_SERVER} + - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT} + - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER} + - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} + - WATCHTOWER_NOTIFICATION_EMAIL_DELAY=${WATCHTOWER_NOTIFICATION_EMAIL_DELAY} + command: --interval 604800 + networks: + - watchtower + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + +networks: + watchtower: + name: watchtower + reverse-proxy: + name: reverse-proxy + external: true diff --git a/compose.yml b/compose.yml new file mode 100755 index 0000000..e69de29