# Difficulty with Gramps Web docker

**URL:** <https://gramps.discourse.group/t/difficulty-with-gramps-web-docker/2325>\
**Category:** Gramps Web\
**Tags:** websolutions\
**Created:** [March 13, 2022, 11:01pm UTC](https://gramps.discourse.group/t/difficulty-with-gramps-web-docker/2325 "2022-03-13T23:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![genresearch](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@genresearch](https://gramps.discourse.group/u/genresearch)\
**Post date:** [March 13, 2022, 11:01pm UTC](https://gramps.discourse.group/t/difficulty-with-gramps-web-docker/2325/1 "2022-03-13T23:01:38Z")

</div>

My apologies if there is a document that covers my question. I have searched and been unsuccessful.

My thanks to the team for all the work! I have seen Gramps running and am impressed and looking forward to being able to use it.

My operating system is Ubuntu 20.04.3 LTS  
My docker version is 20.10.11  
My docker compose is version 1.29.2

I do not have a current database. My goal is to get the web Gramps running on localhost, and add a database and users.

The problem: I can get a container running using the docker-compose up command, but these status stays at RESTARTING and I cannot reach GRAMPS using 5000, 80 or 5554.

Any assistance would be greatly appreciated.

I am following the instructions on [Docker - Gramps Web](http://gramps-project.github.io/web/Deployment/)

Titled: Deploying Gramps Web with Docker.

I have created a docker-compose.yml. My yml is:

version: “3.7”

services:  
grampsweb:  
image: ghcr.io\_gramps-project/grampsweb:latest (changed from link)  
restart: always  
ports:  
- “80:5000”  
environment:  
TREE: “myname” # set the name of your family tree  
SECRET\_KEY: “left out for security” # set your secret key  
BASE\_URL: “http//:localhost:5554”  
volumes:  
- gramps\_users:/app/users  
- gramps\_index:/app/indexdir  
- gramps\_thumb\_cache:/app/thumbnail\_cache  
- ~/gramps\_db:/root/.gramps/grampsdb  
- ~/gramps\_media:/app/media

volumes:  
gramps\_users:  
gramps\_index:  
gramps\_thumb\_cache:

---

<div class="post-metadata">

**Author:** ![Shorshaa](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/shorshaa/32/2763_2.png) [@Shorshaa](https://gramps.discourse.group/u/Shorshaa)\
**Post date:** [May 19, 2023, 1:10pm UTC](https://gramps.discourse.group/t/difficulty-with-gramps-web-docker/2325/4 "2023-05-19T13:10:54Z")

</div>

Hi,  
I had the same issue a couple of weeks ago. You can check [here](https://gramps.discourse.group/t/since-gramps-web-does-not-support-importing-gpkg-file-how-to-import-media-files/3593)  
Instead of the docker-compose you are using, I used the one mentioned on this [link](https://gramps-project.github.io/web/Deployment/)

As I see it packages all the missing blocks to make use of the front-end.

here is the docker-compose data from the link above:

```auto
version: "3.7"

services:
  grampsweb: &grampsweb
    image: ghcr.io/gramps-project/grampsweb:latest
    restart: always
    ports:
      - "80: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:
    <<: *grampsweb # YAML merge key copying the entire grampsweb service config
    ports: []
    container_name: grampsweb_celery
    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:

```
