Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location lost after recreating container #113

Open
iNenadnano opened this issue Dec 24, 2024 · 1 comment
Open

Location lost after recreating container #113

iNenadnano opened this issue Dec 24, 2024 · 1 comment

Comments

@iNenadnano
Copy link

Hello,

First of all, let me thank you for this docker image.

I am running it using docker compose which looks as follows:

services:
  unms:
    image: nico640/docker-unms:latest
    restart: always
    ports:
      - 80:80
      - 443:443
      - 2055:2055/udp
    environment:
      - TZ=Europe/Belgrade
      - SSL_CERT=unms.crt
      - SSL_CERT_KEY=unms.key
    volumes:
      - ./config:/config

The issue I have encountered is that device location gets lost when container is recreated. For example, I was initially running the container without the custom certificates During that time, I have set location for several devices using the UISP API (PUT method on /devices/{deviceId}/location endpoint}. However, after recreating the container with environment variables for custom certificate added, the location was lost. Is this the expected behaviour or am I doing something wrong?

Thank you.

@Nico640
Copy link
Owner

Nico640 commented Dec 29, 2024

Hmm, I would assume that things like device location are stored in the PostgreSQL database and should definitely persist when recreating the container, as long as the /config directory stays the same.
Everything in UISP stayed the same except the device location? Is this reproducible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants