(add): Docker deployments

This commit is contained in:
2026-07-25 15:36:34 -04:00
parent 25f97c5884
commit 10f1b6fa5f
10 changed files with 85 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
source ../../version.env
docker compose build
docker tag dbob16/tam-server:latest dbob16/tam-server:${TAM_VERSION}
docker tag dbob16/tam-rp:latest dbob16/tam-rp:${TAM_VERSION}
echo "TAM_PWD=changeme" > dist/prod.env
TAM_VERSION=${TAM_VERSION} envsubst '$TAM_VERSION' < ./compose.yml.template > ./dist/compose.yml
+15
View File
@@ -0,0 +1,15 @@
services:
tam-server:
build: ../../../api/.
image: dbob16/tam-server:latest
restart: unless-stopped
ports:
- "8000:8000"
tam-rp:
build: ../../../rp/.
image: dbob16/tam-rp:latest
restart: unless-stopped
environment:
- "TAM_SERVER=tam-server"
ports:
- "8443:8443"
@@ -0,0 +1,17 @@
services:
tam-server:
image: dbob16/tam-server:${TAM_VERSION}
restart: unless-stopped
environment:
- "TAM_PWD=${TAM_PWD}"
volumes:
- "./data:/data:Z"
ports:
- "8000:8000"
tam-rp:
image: dbob16/tam-rp:${TAM_VERSION}
restart: unless-stopped
environment:
- "TAM_SERVER=tam-server"
ports:
- "8443:8443"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
if [ -x "$(command -v docker)" ]; then
docker compose --env-file ./prod.env up -d
elif [ -x "$(command -v podman)"]; then
podman compose --env-file ./prod.env up -d
fi
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
read -p "Enter new password: " NEW_PASSWORD
echo "TAM_PWD=${NEW_PASSWORD}" > prod.env
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
if [ -x "$(command -v docker)" ]; then
docker compose --env-file ./prod.env down
elif [ -x "$(command -v podman)" ]; then
podman compose --env-file ./prod.env down
fi