# Gramps Web with nginx proxy manager (NMP) docker container

**URL:** <https://gramps.discourse.group/t/gramps-web-with-nginx-proxy-manager-nmp-docker-container/3837>\
**Category:** Gramps Web\
**Created:** [July 17, 2023, 3:50pm UTC](https://gramps.discourse.group/t/gramps-web-with-nginx-proxy-manager-nmp-docker-container/3837 "2023-07-17T15:50:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mreugene](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/mreugene/32/2908_2.png) [@mreugene](https://gramps.discourse.group/u/mreugene)\
**Post date:** [July 19, 2023, 1:01pm UTC](https://gramps.discourse.group/t/gramps-web-with-nginx-proxy-manager-nmp-docker-container/3837/3 "2023-07-19T13:01:55Z")

</div>

For those interested in using Gramps Web with NXPM, I was able to get the docker compose file working with the following config:

```python
version: "3.7"

services:
  grampsweb: &grampsweb
    image: ghcr.io/gramps-project/grampsweb:latest
    restart: always
    ports:
      - 5000:5000 # host:docker
    environment:
      GRAMPSWEB_TREE: "Gramps Web" # will create a new tree if not exists
      GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://grampsweb_redis:6379/1
    depends_on:
      - grampsweb_redis
    volumes:
      - gramps_users:/app/users # persist user database
      - gramps_index:/app/indexdir # persist search index
      - gramps_thumb_cache:/app/thumbnail_cache # persist thumbnails
      - gramps_cache:/app/cache # persist export and report caches
      - gramps_secret:/app/secret # persist flask secret
      - gramps_db:/root/.gramps/grampsdb # persist Gramps database
      - gramps_media:/app/media # persist media files
      - gramps_tmp:/tmp

  grampsweb_celery:
    image: ghcr.io/gramps-project/grampsweb:latest
    restart: always
    container_name: grampsweb_celery
    environment:
      GRAMPSWEB_TREE: "Gramps Web" # will create a new tree if not exists
      GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://grampsweb_redis:6379/1
    depends_on:
      - grampsweb_redis
    command: celery -A gramps_webapi.celery worker --loglevel=INFO

  grampsweb_redis:
    image: redis:alpine
    container_name: grampsweb_redis
    restart: always

volumes:
  gramps_users:
  gramps_index:
  gramps_thumb_cache:
  gramps_cache:
  gramps_secret:
  gramps_db:
  gramps_media:
  gramps_tmp:

```

---

_[View the full topic](https://gramps.discourse.group/t/gramps-web-with-nginx-proxy-manager-nmp-docker-container/3837)._
