More unified versioning for server

This commit is contained in:
2026-01-24 13:38:15 -05:00
parent 2738ac6e89
commit d4715f5a03
6 changed files with 20 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
services:
tam3-db:
image: docker.io/dbob16/tam3-db:0.2.0
image: docker.io/dbob16/tam3-db:${TAM3_VERSION}
restart: always
environment:
MARIADB_RANDOM_ROOT_PASSWORD: 1
@@ -16,7 +16,7 @@ services:
timeout: 5s
retries: 3
tam3-api:
image: docker.io/dbob16/tam3-api:0.2.0
image: docker.io/dbob16/tam3-api:0.2.0${TAM3_VERSION}
restart: always
environment:
TAM3_DATA_PATH: /data
@@ -33,4 +33,4 @@ services:
- "8443:443"
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro,z"
- "./nginx/certs:/certs:ro,z"
- "./nginx/certs:/certs:ro,z"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
source ../common.sh
tar -cvzf tam3-remote-server-secure_${tam3_version}.tar.gz compose.yml delete-key.sh generate-key.sh list-keys.sh start-server.sh nginx/

View File

@@ -8,6 +8,7 @@ gen_password=$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
echo "DB_LOCATION=./tam3-db" > .env
echo "DB_PASSWORD=${gen_password}" >> .env
echo "TAM3_VERSION=0.3.0"
if [ -x "$(command -v docker)" ]; then
docker compose up -d
@@ -16,4 +17,4 @@ podman compose up -d
else
echo "Neither Docker nor Podman are installed. Please install whichever you prefer and try again."
exit 1
fi
fi