This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create podman container using the docker mongo image: docker.io/library/mongo:latest | |
`sudo podman run -d --name mongod -p 27017:27017 -v /var/lib/mongodb:/data/db:Z mongo --auth` | |
2. Create service file `/etc/systemd/system/mongod.service` to run container: | |
``` | |
[Unit] | |
Description=MongoDB Podman container | |
After=network.target firewalld.service | |
Wants=network.target |