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

LocalDB persist in docker and change ui port #425

Closed
karantin2020 opened this issue Jul 29, 2023 · 1 comment
Closed

LocalDB persist in docker and change ui port #425

karantin2020 opened this issue Jul 29, 2023 · 1 comment
Labels

Comments

@karantin2020
Copy link

karantin2020 commented Jul 29, 2023

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

@mageddo
Copy link
Owner

mageddo commented 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

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

No branches or pull requests

2 participants