add tBlog stuff

This commit is contained in:
trinkey 2024-12-31 20:07:58 -05:00
parent e26f8e9304
commit 19ec7ce1c1
4 changed files with 8 additions and 31 deletions

View file

@ -1,7 +1,7 @@
# This script clones all relevant repositories into respective folders in the current working directory. # This script clones all relevant repositories into respective folders in the current working directory.
git_url="https://git.trinkey.com/t" git_url="https://git.trinkey.com/t"
declare -a repositories=("common" "auth" "message") declare -a repositories=("common" "auth" "message", "blog")
for service in "${repositories[@]}" for service in "${repositories[@]}"
do do

View file

@ -1,26 +0,0 @@
version: "3.8"
services:
common:
build: ./common
ports:
- "8888:8888"
restart: always
auth:
build: ./auth
depends_on:
- common
ports:
- "8800:8800"
restart: always
volumes:
- /home/trinkey/test/tsuite/:/home/trinkey/test/tsuite/
message:
build: ./message
depends_on:
- auth
ports:
- "8001:8001"
restart: always
volumes:
- /home/trinkey/test/tsuite/:/home/trinkey/test/tsuite/

View file

@ -4,23 +4,26 @@ from pathlib import Path
print("Docker configuration\n" + ("-" * 20)) print("Docker configuration\n" + ("-" * 20))
print("You may need to run this with sudo") print("You may need to run this with sudo")
possible_services = ["message"] possible_services = ["message", "blog"]
required_services = ["common", "auth"] required_services = ["common", "auth"]
databases = { databases = {
"auth": "auth.sqlite3", "auth": "auth.sqlite3",
"message": "message.sqlite3" "message": "message.sqlite3",
"blog": "blog.sqlite3"
} }
defaults = { defaults = {
"common": { "port": "8888", "public_url": "http://localhost:8888" }, "common": { "port": "8888", "public_url": "http://localhost:8888" },
"auth": { "port": "8000", "public_url": "http://localhost:8000" }, "auth": { "port": "8000", "public_url": "http://localhost:8000" },
"message": { "port": "8001", "public_url": "http://localhost:8001" } "message": { "port": "8001", "public_url": "http://localhost:8001" },
"blog": { "port": "8002", "public_url": "http://localhost:8002" }
} }
depends = { depends = {
"auth": "common", "auth": "common",
"message": "auth" "message": "auth"
"blog": "auth"
} }
enabled_applications = {} enabled_applications = {}

View file

@ -1,7 +1,7 @@
# This script pulls new changes to all relevant repositories into respective folders in the current working directory. # This script pulls new changes to all relevant repositories into respective folders in the current working directory.
git_url="https://git.trinkey.com/t" git_url="https://git.trinkey.com/t"
declare -a repositories=("common" "auth" "message") declare -a repositories=("common" "auth" "message", "blog")
for service in "${repositories[@]}" for service in "${repositories[@]}"
do do