# PostgreSQL backend
# docker run -d --rm --name ferretdb -p 27017:27017 ghcr.io/ferretdb/all-in-one
# PostgreSQL
# FERRETDB_POSTGRESQL_URL 可以没有账号密码, mongo 链接时提供
docker run -it --rm \
-p 27017:27017 \
-e FERRETDB_TELEMETRY=disable \
-e DO_NOT_TRACK=true \
-e FERRETDB_POSTGRESQL_URL=postgres://postgres:5432/ferretdb \
--name ferretdb ghcr.io/ferretdb/ferretdb
# mongodb://username:password@127.0.0.1/ferretdb?authMechanism=PLAIN
# SQLite
docker run -it --rm \
-p 27017:27017 \
-v $PWD/data:/data/ \
-e FERRETDB_TELEMETRY=disable \
-e DO_NOT_TRACK=true \
-e FERRETDB_HANDLER=sqlite \
-e FERRETDB_SQLITE_URL=file:/data/ \
--name ferretdb ghcr.io/ferretdb/all-in-one