Coder Social home page Coder Social logo

Comments (4)

fl0ppy-d1sk avatar fl0ppy-d1sk commented on May 17, 2024 1

Hello @xn3cr0nx,

The default value of DNS_RESOLVERS is now 127.0.0.11. Feel free to open a new issue if needed.

from bunkerweb.

fl0ppy-d1sk avatar fl0ppy-d1sk commented on May 17, 2024

Hello @xn3cr0nx, can you try setting the DNS_RESOLVERS environment variable to 127.0.0.11 and tell me if that changes anything please ?

from bunkerweb.

fl0ppy-d1sk avatar fl0ppy-d1sk commented on May 17, 2024

Can you share your docker-compose.yml file or commands so we can investigate on this bug ?

from bunkerweb.

xn3cr0nx avatar xn3cr0nx commented on May 17, 2024

thanks @bunkerity, it feels like DNS_RESOLVERS could have fixed it, I am not getting 502 anymore, but I need to monitor its behavior.

In the following I paste the current docker-compose file (removing secrets and not interesting services like postgres and redis). here you can find the original file, but I edited it as follows due to staging testing.

version: '3.7'

x-env: &env production
x-decidim: &decidim 0.23.1
x-ruby: &ruby 
  RUBY_VERSION: 2.6.6

x-network: &network
  networks:
    decidim:

services:
  decidim:
    container_name: decidim
    hostname: decidim-host
    image: *pg-db
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - decidim-gems:/usr/local/bundle:delegated
      - decidim-uploads://home/decidim/azione-decidim/public/uploads
      - decidim-config:/home/decidim/azione-decidim/config
    environment:
      PORT: 3000
      DATABASE_HOST: pg
      DATABASE_USERNAME: *pg-user
      DATABASE_NAME: *pg-db
      RAILS_ENV: *env
      REDIS_URL: redis://redis:6379
      DATABASE_URL: postgres://postgres@pg:5432/azione-decidim_production
      RAILS_SERVE_STATIC_FILES: "true"
      SECRETKEY: secret
      SECRET_KEY_BASE: secret
      DECIDIM_VERSION: *decidim
      # RAILS_LOG_TO_STDOUT: true
      <<: [*ruby, *admin, *org, *smtp]
    depends_on:
      - pg
      - redis
      - nginx
    links:
      - pg
      - redis
    <<: *network
      
  nginx:
    image: bunkerity/bunkerized-nginx
    container_name: nginx
    restart: always
    ports:
      - 80:8080
      - 443:8443
    environment:
      AUTO_LETS_ENCRYPT: "yes" 
      REDIRECT_HTTP_TO_HTTPS: "yes"
      SERVER_NAME: lombardia.amicidiazione.it milano.amicidiazione.it staging.amicidiazione.it
      MULTISITE: "yes"
      DISABLE_DEFAULT_SERVER: "yes"
      ALLOWED_METHODS: "GET|POST|HEAD|OPTIONS|PUT|DELETE"
      WRITE_ACCESS: "yes"
      REFERRER_POLICY: "origin"
      USE_CLAMAV_UPLOAD: "no"
      USE_CLAMAV_SCAN: "no"
      CLAMAV_SCAN_REMOVE: "no"
      ADDITIONAL_MODULES: "ruby"
      USE_MODSECURITY_CRS: "no"
      USE_MODSECURITY: "no"
      DNS_RESOLVERS: "127.0.0.11"
    volumes:
      - nginx-letsencrypt:/etc/letsencrypt
      - ./server-confs:/server-confs
      - ./http-confs:/http-confs
    <<: *network 

volumes:
  pg:
  redis:
  decidim-gems:
  decidim-config:
  decidim-uploads:
  nginx-letsencrypt:

networks:
  decidim:

from bunkerweb.

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.