update and gitignore
This commit is contained in:
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
tandoor/postgresql
|
||||
tandoor/staticfiles
|
||||
tandoor/mediafiles
|
||||
immich-app/library
|
||||
immich-app/postgres
|
||||
gitea/gitea
|
||||
24
caddy/compose.yml
Normal file
24
caddy/compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:alpine
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
volumes:
|
||||
- ./conf:/etc/caddy
|
||||
- ./site:/srv
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
networks:
|
||||
- web
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
|
||||
15
caddy/conf/Caddyfile
Normal file
15
caddy/conf/Caddyfile
Normal file
@@ -0,0 +1,15 @@
|
||||
img.01v0.com:443 {
|
||||
reverse_proxy 74.208.164.239:2283
|
||||
}
|
||||
|
||||
tea.01v0.com:443 {
|
||||
reverse_proxy 74.208.164.239:3000
|
||||
}
|
||||
|
||||
algo.01v0.com:443 {
|
||||
redir http://ionos.tailfc84fe.ts.net:8080/
|
||||
}
|
||||
|
||||
cook.01v0.com:443 {
|
||||
reverse_proxy 74.208.164.239:2295
|
||||
}
|
||||
23
crontab.txt
Normal file
23
crontab.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
GNU nano 7.2 /tmp/crontab.x8yt7o/crontab
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
0 20 * * * root /root/docker/Sandbox_1/cron_scripts/data_pull_binance_us_naked.sh >> /root/docker/Sandbox_1/cron_scripts/data_pull_binance_us_naked.log 2>&1
|
||||
0 21 * * * root /root/docker/Sandbox_1/cron_scripts/data_transfer_to_nas.sh >> /root/docker/Sandbox_1/cron_scripts/data_transfer_to_nas.log 2>&1 && echo "$(date '+%Y-%m-%d %H:%M:%S') - Cron job fin>
|
||||
27
gitea/docker-compose.yml
Normal file
27
gitea/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
server:
|
||||
image: docker.gitea.com/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- web
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "9229:9229"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 500M
|
||||
22
immich-app/.env
Normal file
22
immich-app/.env
Normal file
@@ -0,0 +1,22 @@
|
||||
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
|
||||
|
||||
# The location where your uploaded files are stored
|
||||
UPLOAD_LOCATION=./library
|
||||
|
||||
# The location where your database files are stored. Network shares are not supported for the database
|
||||
DB_DATA_LOCATION=./postgres
|
||||
|
||||
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||
# TZ=Etc/UTC
|
||||
|
||||
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
|
||||
IMMICH_VERSION=release
|
||||
|
||||
# Connection secret for postgres. You should change it to a random password
|
||||
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
|
||||
DB_PASSWORD=postgres
|
||||
|
||||
# The values below this line do not need to be changed
|
||||
###################################################################################
|
||||
DB_USERNAME=postgres
|
||||
DB_DATABASE_NAME=immich
|
||||
97
immich-app/docker-compose.yml
Normal file
97
immich-app/docker-compose.yml
Normal file
@@ -0,0 +1,97 @@
|
||||
#
|
||||
# WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
|
||||
#
|
||||
# Make sure to use the docker-compose.yml of the current release:
|
||||
#
|
||||
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
|
||||
#
|
||||
# The compose file on main may not be compatible with the latest release.
|
||||
|
||||
name: immich
|
||||
|
||||
services:
|
||||
immich-server:
|
||||
container_name: immich_server
|
||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
||||
# extends:
|
||||
# file: hwaccel.transcoding.yml
|
||||
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
|
||||
volumes:
|
||||
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
|
||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- '2283:2283'
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
disable: false
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1000M
|
||||
|
||||
immich-machine-learning:
|
||||
container_name: immich_machine_learning
|
||||
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
|
||||
# Example tag: ${IMMICH_VERSION:-release}-cuda
|
||||
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
|
||||
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
|
||||
# file: hwaccel.ml.yml
|
||||
# service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
|
||||
volumes:
|
||||
- model-cache:/cache
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
disable: false
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1000M
|
||||
|
||||
redis:
|
||||
container_name: immich_redis
|
||||
image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
|
||||
healthcheck:
|
||||
test: redis-cli ping || exit 1
|
||||
restart: always
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 500M
|
||||
|
||||
database:
|
||||
container_name: immich_postgres
|
||||
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
|
||||
# DB_STORAGE_TYPE: 'HDD'
|
||||
volumes:
|
||||
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
|
||||
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 500M
|
||||
|
||||
volumes:
|
||||
model-cache:
|
||||
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
24
mysql/docker-compose.yml
Normal file
24
mysql/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
external: true
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mysql:latest
|
||||
container_name: mysql_mkt_maker
|
||||
ports:
|
||||
- "3306:3306"
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=pwd
|
||||
- MYSQL_DATABASE=mkt_maker
|
||||
volumes:
|
||||
- /root/dbs/mysql:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- web
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1000M
|
||||
81
setup.sh
Normal file
81
setup.sh
Normal file
@@ -0,0 +1,81 @@
|
||||
### Install Docker ###
|
||||
# Function to check if Docker is installed
|
||||
check_docker_installed() {
|
||||
if command -v docker &> /dev/null; then
|
||||
return 0 # Docker is installed
|
||||
else
|
||||
return 1 # Docker is not installed
|
||||
fi
|
||||
}
|
||||
|
||||
check_tailscale_installed() {
|
||||
if command -v tailscale &> /dev/null; then
|
||||
return 0 # Tailscale is installed
|
||||
else
|
||||
return 1 # Tailscale is not installed
|
||||
fi
|
||||
}
|
||||
|
||||
if check_docker_installed; then
|
||||
echo "Docker is already installed. moving onto container start up."
|
||||
else
|
||||
# Add Docker's official GPG key:
|
||||
echo updating docker repository
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
# Add the repository to Apt sources:
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
sudo apt-get update
|
||||
|
||||
# Install
|
||||
echo install docker
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
echo adding current user to docker usermod
|
||||
sudo usermod -aG docker $USER
|
||||
fi
|
||||
|
||||
### Install Tailscale Locally and Mount HomeNAS ###
|
||||
if check_tailscale_installed; then
|
||||
echo "Tailscale is already installed. connecting server."
|
||||
else
|
||||
echo installing tailscale
|
||||
curl -fsSL https://tailscale.com/install.sh | sh
|
||||
fi
|
||||
sudo tailscale up --auth-key=tskey-auth-koHiorB8cj11CNTRL-dLaNRmukCWL5BurtnvU2WLDbrv4SDhVDX --hostname=IONOS
|
||||
|
||||
### Docker Containers to Compose ###
|
||||
declare -a arr=(
|
||||
# caddy
|
||||
# tailscale
|
||||
# immich-app
|
||||
# mysql
|
||||
# gitea
|
||||
)
|
||||
|
||||
for i in "${arr[@]}"
|
||||
do
|
||||
echo docker composing: "$i"
|
||||
cd ./$i
|
||||
docker compose up -d --build
|
||||
cd ..
|
||||
done
|
||||
|
||||
### Install Conda ###
|
||||
# echo installing mini conda
|
||||
# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
# bash ./Miniconda3-latest-Linux-x86_64.sh
|
||||
# rm ./Miniconda3-latest-Linux-x86_64.sh
|
||||
|
||||
echo setup complete, adios!
|
||||
|
||||
|
||||
|
||||
24
tailscale/docker-compose.yml
Normal file
24
tailscale/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# docker-compose.yml
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
tailscale:
|
||||
network_mode: host
|
||||
image: tailscale/tailscale:latest
|
||||
hostname: linode.tailfc84fe.ts.net
|
||||
volumes:
|
||||
- /var/lib/tailscale:/var/lib/tailscale # Persistent data volume
|
||||
- /dev/net/tun:/dev/net/tun # Required for Tailscale to function
|
||||
cap_add:
|
||||
- NET_ADMIN # Required for network administration
|
||||
- SYS_ADMIN # Required for system administration
|
||||
environment:
|
||||
# - TS_AUTHKEY=tskey-auth-kudNt4td4i11CNTRL-GsLa82boyX5pis4EXi4jX5z5brQDX6gnQ
|
||||
- TS_AUTHKEY=tskey-auth-koHiorB8cj11CNTRL-dLaNRmukCWL5BurtnvU2WLDbrv4SDhVDX
|
||||
#- TS_ROUTES=192.168.1.0/24 # Optional: Specify subnet routes to advertise
|
||||
#- TS_EXTRA_ARGS=--exit-node-allow-lan-access # Optional: Allow LAN access when used as an exit node
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8050:8050"
|
||||
25
tandoor/.env
Normal file
25
tandoor/.env
Normal file
@@ -0,0 +1,25 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# This template contains only required options.
|
||||
# Visit the docs to find more https://docs.tandoor.dev/system/configuration/
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# random secret key, use for example `base64 /dev/urandom | head -c50` to generate one
|
||||
SECRET_KEY=2upOGCars1jUqN+TZ5l1ossqYeN9DztGj1uJ+H8QAskPmfxZFz
|
||||
|
||||
# your default timezone See https://timezonedb.com/time-zones for a list of timezones
|
||||
TZ=America/New_York
|
||||
|
||||
# allowed hosts (see documentation), should be set to your hostname(s) but might be * (default) for some proxies/providers
|
||||
# ALLOWED_HOSTS=*
|
||||
|
||||
# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
|
||||
DB_ENGINE=django.db.backends.postgresql
|
||||
POSTGRES_HOST=db_recipes
|
||||
POSTGRES_DB=djangodb
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_USER=djangouser
|
||||
POSTGRES_PASSWORD=password
|
||||
|
||||
TANDOOR_PORT=2295
|
||||
|
||||
GUNICORN_MEDIA=1
|
||||
40
tandoor/docker-compose.yml
Normal file
40
tandoor/docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
services:
|
||||
db_recipes:
|
||||
restart: always
|
||||
image: postgres:16-alpine
|
||||
volumes:
|
||||
- postgresql:/var/lib/postgresql/data
|
||||
env_file:
|
||||
- .env
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 500M
|
||||
|
||||
web_recipes:
|
||||
restart: always
|
||||
image: vabene1111/recipes
|
||||
ports:
|
||||
- "2295:2295"
|
||||
# - "5432:5432"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./staticfiles:/opt/recipes/staticfiles
|
||||
- ./mediafiles:/opt/recipes/mediafiles
|
||||
depends_on:
|
||||
- db_recipes
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1000M
|
||||
|
||||
volumes:
|
||||
staticfiles:
|
||||
postgresql:
|
||||
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user