rnwood / smtp4dev

smtp4dev - the fake smtp email server for development and testing
BSD 3-Clause "New" or "Revised" License
3.03k stars 342 forks source link

Is there an in-memory persistence option #1261

Closed diegosasw closed 6 months ago

diegosasw commented 11 months ago

I am using the docker image.

Is there any option to make persistence ephimeral or in-memory storage or similar?

Basically, I'd like to have it as part of a docker compose, but delete all its container's volume data when stopping docker compose

rnwood commented 6 months ago

Yes. --db= command line option (with no value) will use in memory DB.

See https://github.com/rnwood/smtp4dev/wiki/Configuration#command-line-options for more details