diff --git a/compose/django.md b/compose/django.md index 6abd995413..0349ffb707 100644 --- a/compose/django.md +++ b/compose/django.md @@ -69,6 +69,8 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi services: db: image: postgres + volumes: + - ./data/db:/var/lib/postgresql/data environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres