Last active
November 20, 2024 21:18
-
-
Save mortn/f6dfacf5b6192a344df50a878d7f4261 to your computer and use it in GitHub Desktop.
MongoDB CE quadlet
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
[Container] | |
Image=docker.io/percona/percona-server-mongodb | |
AutoUpdate=registry | |
PublishPort=27017:27017/tcp | |
Volume=%h/mongodb/data:/data/db | |
Volume=%h/mongodb/init/:/docker-entrypoint-initdb.d/:ro | |
EnvironmentFile=%h/.config/containers/systemd/mongodb.env | |
Environment=PUID=101000 | |
[Service] | |
Restart=always | |
[Install] | |
WantedBy=default.target |
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
MONGO_INITDB_ROOT_USERNAME=username | |
MONGO_INITDB_ROOT_PASSWORD=changeme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment