diff --git a/script/setup b/script/setup index 52e58c5..4dfc66e 100755 --- a/script/setup +++ b/script/setup @@ -27,8 +27,6 @@ else -p 8500:8500 \ -p 8600:8600 \ -p 8900:8080 \ - -p 27017:27017 \ - -p 8081:8081 \ -p 61616:61616 \ -p 8161:8161 \ -p 5672:5672 \ @@ -42,13 +40,6 @@ else podman volume create kontor-db fi -echo "==> Setting up volume kontor-mongo" -if podman volume exists kontor-mongo; then - echo " => volume kontor-mongo exists" -else - podman volume create kontor-mongo -fi - echo "==> Setting up volume activemq-data" if podman volume exists activemq-data; then echo " => volume kontor-db exists" @@ -83,35 +74,6 @@ else podman run -d --replace --pod kontor --name adminer docker.io/library/adminer fi -echo "==> Setting up container mongodb" -if podman container exists mongodb; then - if podman ps -q --filter "name=mongodb"; then - echo " => mongodb is running" - fi -else - podman run -d --replace --pod kontor --name mongodb \ - -e MONGO_INITDB_ROOT_USERNAME=kontor \ - -e MONGO_INITDB_ROOT_PASSWORD=kontor \ - -v kontor-mongo:/data/db \ - docker.io/library/mongo:latest -fi - -echo "==> Setting up container mongo-express" -if podman container exists mongo-express; then - if podman ps -q --filter "name=mongo-express"; then - echo " => mongo-express is running" - fi -else - podman run -d --replace --pod kontor --name mongo-express \ - -e ME_CONFIG_MONGODB_SERVER="mongodb" \ - -e ME_CONFIG_MONGODB_ADMINUSERNAME="kontor" \ - -e ME_CONFIG_MONGODB_ADMINPASSWORD="kontor" \ - -e ME_CONFIG_BASICAUTH_ENABLED="true" \ - -e ME_CONFIG_BASICAUTH_USERNAME="kontor" \ - -e ME_CONFIG_BASICAUTH_PASSWORD="kontor" \ - docker.io/mongo-express:latest -fi - echo "==> Setting up container activemq" if podman container exists activemq; then if podman ps -q --filter "name=activemq"; then