Im trying to setup podman as a drop-in replacement for docker and docker compose. The 'build' and 'run' commands all work; however, the hot-reloading does not seem to work on podman while it works fine on docker.
dockerfile
FROM node:22-alpine as base
WORKDIR /app
COPY package.lock.json
COPY package.json
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "run", "dev", "--host", "0.0.0.0", "--port", "3000"]
compose file
services
web:
build:
dockerfile: dockerfile
volumes:
- .:app
- node_modules:/app/node_modules
ports: 3000:3000
As mentioned, running docker compose up builds and runs the web app fine with hot-reloading. However, running podman compose up will just build and run but without hot-reloading.
What else could I try? Are there any issues here?