docker-compose with-nginx-proxy example with self-signed ssl crashes with no debug logs
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, docker-compose, nginx
- Área
- devops, infrastructure
Línea de trabajo
Comienza con .examples/.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml y reproduce la configuración del certificado autofirmado utilizando los cambios mostrados en MYSQL_PASSWORD y db.env. Inspecciona el proxy y la configuración de nginx generada alrededor del reload, y luego verifica que el ejemplo se ejecute correctamente con el certificado autofirmado o explique cómo habilitar logs de nginx más detallados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When running the compose.yaml file from .examples/.examples/docker-compose/with-nginx-proxy/mariadb/apache with a self-signed certificate, nginx will crash with little to no explanation of what is happening. The example, running with a MYSQL_PASSWORD set and the db.env file appropriately updated, shows log entries like this, but does not explain why it is shutting down:
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: using the "epoll" event method
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: nginx/1.27.3
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: OS: Linux 6.1.118-Unraid
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: getrlimit(RLIMIT_NOFILE): 40960:40960
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: start worker processes
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: start worker process 24
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: start worker process 25
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: start worker process 26
<snip...>
dockergen.1 | 2025/02/08 14:22:09 Generated '/etc/nginx/conf.d/default.conf' from 4 containers
dockergen.1 | 2025/02/08 14:22:09 Running 'nginx -s reload'
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: signal 1 (SIGHUP) received from 57, reconfiguring
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: reconfiguring
dockergen.1 | 2025/02/08 14:22:10 Watching docker events
nginx.1 | 2025/02/08 14:22:09 [notice] 17#17: using the "epoll" event method
For reference, here is the dockerfile that I am using, the two changes are to set the VIRTUAL_HOST and the location of the db.env file with an appropriately updated db.env file:
services:
db:
image: mariadb:10.11
command: --transaction-isolation=READ-COMMITTED
restart: always
volumes:
- db:/var/lib/mysql:Z
environment:
- MYSQL_ROOT_PASSWORD=12345
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- /path/to/your/db.env
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:apache
restart: always
volumes:
- nextcloud:/var/www/html:z
# NOTE: The `volumes` config of the `cron` and `app` containers must match
environment:
- VIRTUAL_HOST=servhostname.local
- LETSENCRYPT_HOST=
- LETSENCRYPT_EMAIL=
- MYSQL_HOST=db
- REDIS_HOST=redis
env_file:
- /path/to/your/db.env
depends_on:
- db
- redis
# Added proxy container dependency below.
# It is unclear on when or why it happens, but sometimes NC manages to start before the proxy
# and it breaks for whatever weird reason resulting in the need of manual proxy container restart.
- proxy
networks:
- proxy-tier
- default
cron:
image: nextcloud:apache
restart: always
volumes:
- nextcloud:/var/www/html:z
# NOTE: The `volumes` config of the `cron` and `app` containers must match
entrypoint: /cron.sh
depends_on:
- db
- redis
# letsencrypt-companion:
# image: nginxproxy/acme-companion
# restart: always
# environment:
# - DEFAULT_EMAIL=
# volumes:
# - certs:/etc/nginx/certs:z
# - acme:/etc/acme.sh:z
# - vhost.d:/etc/nginx/vhost.d:z
# - html:/usr/share/nginx/html:z
# - /var/run/docker.sock:/var/run/docker.sock:z,ro
# networks:
# - proxy-tier
# depends_on:
# - proxy
# self signed
omgwtfssl:
image: paulczar/omgwtfssl
restart: "no"
volumes:
- certs:/certs
environment:
- SSL_SUBJECT=servhostname.local
- [email protected]
- SSL_KEY=/certs/servhostname.local.key
- SSL_CSR=/certs/servhostname.local.csr
- SSL_CERT=/certs/servhostname.local.crt
networks:
- proxy-tier
volumes:
db:
nextcloud:
certs:
acme:
vhost.d:
html:
dhparam:
networks:
proxy-tier:
I believe this example should be configured so that nginx-proxy produces more granular log messages, or at least put a comment in the compose.yaml that provides an environment variable that can be set to increase nginx verbosity. I'm not sure how to fix the example so that it actually runs with the self-signed certificate, though.
- Lenguaje dominante
- Shell
- Estrellas
- 7.4k
- Forks
- 1.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/docker
-
1. To develop bug feature: cron image
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Drop paragarph about anonymous (unnamed) volumes under Persistent Storage section fo the docsAbiertobug docs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
0. Needs triage bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Imagick architecture mismatch (x86_64 vs aarch64) on official arm64 image causes Apache segfaultsAbierto0. Needs triage bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
Todos los issues de nextcloud/docker
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Installer computes steamid3 as -76561197960265728 when loginusers.vdf uses lowercase "timestamp"Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan configPosiblemente ocupada @jfcabral la tomó hoy. AbiertoBug Good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
armbian/build#10995 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Update waterfox-bin to 6.7.6Abiertopackage-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
oSoWoSo/vOid_Community_repOsitory#417 ·
Los mantenedores suelen responder en 1 día