Update some vars. Switch to podman

This commit is contained in:
2025-10-07 15:38:46 +00:00
parent 5032672341
commit 74f6dfa66d
5 changed files with 813 additions and 888 deletions

View File

@@ -1,21 +1,22 @@
networks:
nginx-bridge:
external: true
services:
bang-web-server:
bang:
build:
context: ../
dockerfile: docker/Dockerfile
image: gib/bang:latest
container_name: bang
hostname: bang.gib
hostname: bang
domainname: bang.gbrown.org
networks:
- nginx-bridge
#ports:
#- 5000:5000
#ports: ['5000:5000']
stdin_open: true
tty: true
restart: unless-stopped
volumes:
- ../:/app
command: serve -s /app/dist -l 5000
networks:
nginx-bridge:
external: true

View File

@@ -24,7 +24,7 @@ if [ $# -eq 1 ]; then
else
# No argument provided, try to determine location
current_dir=$(basename "$(pwd)")
if [ "$current_dir" = "docker" ]; then
cd .. || exit 1
elif [ "$current_dir" != "Bang" ]; then
@@ -47,5 +47,5 @@ fi
pnpm install
pnpm build
cd docker || exit 1
sudo docker compose up -d
sudo podman compose up -d
cd ..

View File

@@ -24,7 +24,7 @@ if [ $# -eq 1 ]; then
else
# No argument provided, try to determine location
current_dir=$(basename "$(pwd)")
if [ "$current_dir" = "docker" ]; then
cd .. || exit 1
elif [ "$current_dir" != "Bang" ]; then
@@ -47,6 +47,6 @@ fi
git pull
pnpm build
cd docker || exit 1
sudo docker compose down
sudo docker compose up -d
sudo podman compose down
sudo podman compose up -d
cd ..