Skip to content

Commit a99241f

Browse files
committed
Added note on persisting data
1 parent d4c7b0e commit a99241f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ For example, to serve on port 8454, using a sqlite database, with the dbip data
278278
docker run -p 8454:8080 -e DB_TYPE=sqlite -e DB_USER=ip-location-api.db -e COUNTRY=dbip-country -e CITY=geolite2-city -e ASN=dbip-asn ip-location-api
279279
```
280280

281+
To persist location data between starts, pass `-v ip_location_data:/app/downloads` to the `docker run` command.
282+
281283
## Possible Future Improvements / Enhancements
282284

283285
- [ ] Make the webserver optional

0 commit comments

Comments
 (0)