umap icon indicating copy to clipboard operation
umap copied to clipboard

uMap Docker not accessible after reboot of host system - restart-loop?

Open Pfaff15 opened this issue 7 months ago • 0 comments

Describe the bug I have umap 3.0.2 running on ubuntu 24.04 in docker. After a reboot of the host system, uMap is not accessible. With docker ps it looks like the app keeps restarting all the time. A manual restart of the container with docker compose down and a subsequent docker compose up -d solves the problem. To note is, that this problem always existed on my system, even on older version e.g. 2.7.2.

If there is a mistake from my side, I am sorry. If so, I would be happy to get some guidance. I could not find any solution in the documentation and forums.

To Reproduce Steps to reproduce the behavior:

  1. Reboot host system
  2. try to access uMap on my system
  3. get error no connection possible
  4. ssh onto the host
  5. docker compose down
  6. docker compose up -d
  7. uMap running again

Expected behavior After a reboot of the host system, uMap should start automaticaly and be accessible as usual

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 LTS
  • Browser: Firefox 137.0.1, Edge 135.0.3179.73
  • Version: see above

Additional context My docker-compose.yml:

services:

  # Usefull only to use the real time collaboration
#  redis:
#    image: redis:latest
#    healthcheck:
#      test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
#      interval: 1s
#      timeout: 3s
#      retries: 5
#    command: ["redis-server"]

  db:
    healthcheck:
      test: [ "CMD-SHELL", "pg_isready -U postgres" ]
      interval: 2s
    # check https://hub.docker.com/r/postgis/postgis to see available versions
    image: postgis/postgis:14-3.4-alpine
    environment:
      - POSTGRES_HOST_AUTH_METHOD=trust
    volumes:
      - umap_db:/var/lib/postgresql/data

  app:
    depends_on:
      db:
        condition: service_healthy
#      redis:
#        condition: service_healthy
    # Check https://hub.docker.com/r/umap/umap/tags to find the latest version
    image: umap/umap:3.0.2
    ports:
      # modify the external port (8001, on the left) if desired, but make sure it matches SITE_URL, below
      - "8001:8000"
    environment:
      - DATABASE_URL=postgis://postgres@db/postgres
      - SITE_URL=https://myIP:8001/
      - STATIC_ROOT=/srv/umap/static
      - MEDIA_ROOT=/srv/umap/uploads
      - SECRET_KEY=somerandomthingy
      - ENABLE_ACCOUNT_LOGIN=1
      - DEBUG=1
#      - UMAP_ALLOW_ANONYMOUS=True
#      - REALTIME_ENABLED=1
#      - REDIS_URL=redis://redis:6379
    volumes:
      - umap_userdata:/srv/umap/uploads
      - umap_static:/srv/umap/static
      # FIX the path on the left, below, to your location 
      # OPTIONAL, you can comment the line below out for default
      # values to apply
      #- ./config/umap.conf:/etc/umap/umap.conf
    restart: unless-stopped

volumes:
  umap_userdata:
  umap_static:
  umap_db:

Pfaff15 avatar Apr 12 '25 08:04 Pfaff15