[GH-ISSUE #425] LocalDB persist in docker and change ui port #146

Closed
opened 2026-02-26 04:34:11 +03:00 by kerem · 1 comment
Owner

Originally created by @karantin2020 on GitHub (Jul 29, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/425

What is Happening / What is expected

  • All dns config (set in ui) reset after docker restart
  • Add persistent volume to save dns config

Specs

  • OS: Ubuntu 22.04 server
  • Docker Version: latest
  • DPS Version: 1.16.0

Read all docs, didn't find how to save dns config in docker or docker compose (latest version) before/after restart/stop container.
Is it possible to add environment variable to change web ui port?

Thanks

Originally created by @karantin2020 on GitHub (Jul 29, 2023). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/425 ### What is Happening / What is expected * All dns config (set in ui) reset after docker restart * Add persistent volume to save dns config ### Specs * OS: Ubuntu 22.04 server * Docker Version: latest * DPS Version: 1.16.0 Read all docs, didn't find how to save dns config in docker or docker compose (latest version) before/after restart/stop container. Is it possible to add environment variable to change web ui port? Thanks
kerem 2026-02-26 04:34:11 +03:00
Author
Owner

@mageddo commented on GitHub (Jun 10, 2024):

Hey, sorry for the late answer:

  • You can create a persistent JSON config by voluming container path /app/conf
  • You can change the webserver port on the JSON config or at the command args by using --web-server-port 80 for example.
services:
  dps:
    image: defreitas/dns-proxy-server:3.19.1-snapshot
    command: --web-server-port 80
    volumes:
      - dps_vol:/app/conf
    ports:
      - 8081:80

volumes: 
  dps_vol:

Please reopen if you have any doubts

<!-- gh-comment-id:2158106842 --> @mageddo commented on GitHub (Jun 10, 2024): Hey, sorry for the late answer: * You can create a persistent JSON config by voluming container path `/app/conf` * You can change the webserver port on the JSON config or at the command args by using `--web-server-port 80` for example. ```yaml services: dps: image: defreitas/dns-proxy-server:3.19.1-snapshot command: --web-server-port 80 volumes: - dps_vol:/app/conf ports: - 8081:80 volumes: dps_vol: ``` Please reopen if you have any doubts
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#146
No description provided.