Ensure you have Homebrew installed on your macOS. If not, install it using:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Podman:
brew install podman
-
Install Podman Compose:
brew install podman-compose
-
Initialize Podman (if running for the first time):
podman machine init podman machine start
Use Podman Compose to build and start the app:
podman compose -f ./docker-compose.yml -p volunteerhub up -d --build
This will:
- Build the necessary images
- Start the app in detached mode (
-d
)
If you have already built the containers and just need to start them, run:
podman compose -f ./docker-compose.yml -p volunteerhub up -d
Once the app is running, you can access it at:
-
Stop the app:
podman compose -f ./docker-compose.yml -p volunteerhub down
-
Restart the app:
podman compose -f ./docker-compose.yml -p volunteerhub up -d
-
Check running containers:
podman ps
-
View logs:
podman logs -f <container_name>
-
Replace
<container_name>
with the actual container name (checkpodman ps
). -
If you run into networking issues, you may need to restart the Podman machine:
podman machine stop podman machine start
Now your VolunteerHub app is up and running with Podman! 🚀