some deployments worked out
This commit is contained in:
@@ -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"
|
||||
5
deployment/remote_server/docker_generate-key.sh
Executable file
5
deployment/remote_server/docker_generate-key.sh
Executable 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."
|
||||
1
deployment/remote_server/docker_list-keys.sh
Executable file
1
deployment/remote_server/docker_list-keys.sh
Executable file
@@ -0,0 +1 @@
|
||||
docker compose exec tam3-api /app/key.py list
|
||||
8
deployment/remote_server/docker_start-server.sh
Executable file
8
deployment/remote_server/docker_start-server.sh
Executable 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
|
||||
5
deployment/remote_server/podman_generate-key.sh
Executable file
5
deployment/remote_server/podman_generate-key.sh
Executable 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."
|
||||
1
deployment/remote_server/podman_list-keys.sh
Executable file
1
deployment/remote_server/podman_list-keys.sh
Executable file
@@ -0,0 +1 @@
|
||||
podman compose exec tam3-api /app/key.py list
|
||||
8
deployment/remote_server/podman_start-server.sh
Executable file
8
deployment/remote_server/podman_start-server.sh
Executable 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
|
||||
Reference in New Issue
Block a user