Coder Social home page Coder Social logo

Comments (2)

max-tet avatar max-tet commented on August 23, 2024 1

The links feature was a great idea. I replaced

    depends_on:
      - grocy-backend

with

    links:
      - grocy-backend:backend

and it works as intended. Thank you!

from grocy-docker.

jayaddison avatar jayaddison commented on August 23, 2024

Hi @max-tet - some observations, and then some ideas:

  • nginx doesn't support reading the fastcgi_pass value from an environment variable - we could instead write a static value into each backend container image config.. but that would defeat some of the caching and assurance benefits of knowing that the containers are running from identical images, not to mention being ugly to implement.

  • It sounds like what you want to achieve is the ability to run multiple instances of Grocy within a single Docker runtime, and the resolution of the backend name from each frontend node is causing problems here.

Could you let me know if either of these ideas appeal:

  • Using the links feature of the Docker compose file to add a DNS resolution from grocy-backend:backend within the scope of grocy-frontend.

  • Declaring separate Docker networks for each of the paired containers, and then specifying container_name: backend on each of the backend containers so that within that network it is known as backend and resolves correctly from nginx.

There could be other options I'm not considering here; further ideas (and/or further investigation of the environment variable idea if I've missed something there) welcome.

from grocy-docker.

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.