some deployments worked out

This commit is contained in:
2025-10-03 18:02:40 -04:00
parent 0acfd16d96
commit fdc2349de1
26 changed files with 286 additions and 141 deletions

View File

@@ -1,6 +1,6 @@
services:
tam3-db:
image: dbob16/tam3-db:0.1.0
image: docker.io/dbob16/tam3-db:0.1.0
restart: always
environment:
MARIADB_RANDOM_ROOT_PASSWORD: 1
@@ -8,7 +8,7 @@ services:
MARIADB_USER: tam3
MARIADB_PASSWORD: ${DB_PASSWORD}
volumes:
- "${DB_LOCATION}:/var/lib/mysql"
- "${DB_LOCATION}:/var/lib/mysql:z"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
@@ -16,7 +16,7 @@ services:
timeout: 5s
retries: 3
tam3-api:
image: dbob16/tam3-api:0.1.0
image: docker.io/dbob16/tam3-api:0.1.0
restart: always
environment:
TAM3_DATA_PATH: /data
@@ -25,15 +25,4 @@ services:
TAM3_DB_USER: tam3
TAM3_DB_PASSWD: ${DB_PASSWORD}
ports:
- "8000:80"
autoheal:
deploy:
replicas: 1
environment:
AUTOHEAL_CONTAINER_LABEL: autoheal-app
image: willfarrell/autoheal:latest
network_mode: none
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- "8000:80"

View File

@@ -0,0 +1,5 @@
read -p "Enter the name of the computer you plan to use the key on: " pcname
docker compose exec tam3-api /app/key.py generate $pcname
echo "Note the key above this line. You can use that for the computer."

View File

@@ -0,0 +1 @@
docker compose exec tam3-api /app/key.py list

View File

@@ -0,0 +1,8 @@
#!/bin/bash
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
docker compose up -d

View File

@@ -0,0 +1,5 @@
read -p "Enter the name of the computer you plan to use the key on: " pcname
podman compose exec tam3-api /app/key.py generate $pcname
echo "Note the key above this line. You can use that for the computer."

View File

@@ -0,0 +1 @@
podman compose exec tam3-api /app/key.py list

View File

@@ -0,0 +1,8 @@
#!/bin/bash
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
podman compose up -d