GithubHelp home page GithubHelp logo

Comments (4)

nguyenkims avatar nguyenkims commented on May 22, 2024

@dohlin Glad that you have been able to debug all this out! The database needs to be reached by both containers and Postfix (which is outside of Docker) so port binding is a must. You could use another port than 5432 if this port happens to be occupied on your VM/server though.

The alias suffix like "cat", "chat" is there to avoid one person taking all "nice" aliases. This protection doesn't make sense in self-hosted SimpleLogin though, #37 adds an option to disable this suffix. Once the PR is merged, please make sure to set the DISABLE_ALIAS_SUFFIX in your config file to disable alias suffix.

from app.

dohlin avatar dohlin commented on May 22, 2024

Excellent thank you! One last question - when the PR is merged and the .env file is updated with that option, what is the best way to update the running docker container? Is it to remove the docker container and image and then simple re-pull/re-setup the container? Or is there a better way?

from app.

nguyenkims avatar nguyenkims commented on May 22, 2024

If you can afford some small downtimes, I would do

  1. docker pull simplelogin/app to get the latest docker image. This could take a while, depending on your network.
    1b. Update the config file to add DISABLE_ALIAS_SUFFIX option.
  2. remove all SimpleLogin containers (you don't need to remove the Postgres container) by docker rm -f sl-migration sl-app sl-email sl-cron
  3. start them again using the commands in the README.

SimpleLogin containers are down during step 2 & 3. but no email is lost as Postfix is still running.

Please note that the Docker network has changed from 1.1.1.1 to a better one (240.0.0.0), if you deploy SimpleLogin before that change, you might need to redo the network setup. Sorry about this breaking change!

from app.

dohlin avatar dohlin commented on May 22, 2024

Thank you, this all worked great. Got the docker network updated, containers removed/reassigned, & postfix main.cf file updated too. Thanks again!

from app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.