question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nginx-proxy-manager + nextcloud:fpm = 502 Bad Gateway

See original GitHub issue

I’m using two separate docker-compose files, some with npm and one with nextcloud. I get the npm network to use in the nextcloud, but I have an error when accessing the 502 Bad Gateway nextcloud.

Below my nextcloud docker-compose

version: '3.9'

services:
  nextcloud_db:
    image: postgres:13
    container_name: nextcloud_db
    restart: always
    volumes:
      - ./volumes/db:/var/lib/postgresql/data
    env_file:
      - db.env

  nextcloud:
    image: nextcloud:fpm
    container_name: nextcloud
    restart: always
    expose:
      - '80'
      - '9000'
    volumes:
      - ./volumes/nextcloud:/var/www/html
    environment:
      - POSTGRES_HOST=nextcloud_db
    env_file:
      - db.env
    depends_on:
      - nextcloud_db

networks:
  default:
    external:
      name: nginxproxymanager_default

My conteiners Captura de tela de 2021-03-06 20-17-25

Configuration SSL Captura de tela de 2021-03-06 20-11-29 Captura de tela de 2021-03-06 20-11-40

Captura de tela de 2021-03-06 20-25-01

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
talesamcommented, Apr 17, 2021

Não tenho certeza se é necessário, ainda não testei cal e carddav.

For version 21 it is, for version 20 it is not.

1reaction
sgb999commented, Mar 7, 2021

I think you’re confused. It has nothing to do with the image that you are proxying to at all. Its an issue when the app talks to the database, it happens for any docker image you proxy to even if apache is not involved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nextcloud Nginx Proxy Manager 502 Bad Getway - ℹ️ Support
Hi everyone,. I'm trying for a long time to get nextcloud working behind a reverse proxy. I have a 502 Bad Getway Error...
Read more >
Webserver 502 bad gateway - Dockerized NextCloud, Maria ...
I'm new to docker and nginx reverse proxy, getting my hands dirty in diagnosing errors below. Source youtube I was following: https://www.
Read more >
nginx-proxy-manager + nextcloud:fpm = 502 Bad Gateway
I get the npm network to use in the nextcloud, but I have an error when accessing the 502 Bad Gateway nextcloud.
Read more >
502 Bad Gateway Error on Nextcloud Docker ... - Stack Overflow
Your nginx proxy config is fine but it won't work because you will need nginx fastcgi_proxy for this to proxy request to a...
Read more >
NGINX 502 Bad Gateway: PHP-FPM - Datadog
NGINX will return a 502 Bad Gateway error if it can't successfully proxy a request to PHP-FPM, or if PHP-FPM fails to respond....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found