Update some vars. Switch to podman
This commit is contained in:
@@ -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
|
@@ -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 ..
|
||||
|
@@ -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 ..
|
||||
|
Reference in New Issue
Block a user