Nextcloud container after move - docker

I have server, which is hp t620 with 64gb ssd inside and two 1tb hdd disk in the cover connected by USB 3.0 and configured in RAID 1 (cover has option to configured RAID 1, 0 and JBOD). HDD disk are mounted under /srv/dev-disk-by-uuid-9eac4f7c-81d6-48a7-9a4a-c8f20ceba7b5
It operates under OMV 5.10.
I installed the docker by OMV web GUI in /srv/dev-disk-by-uuid-9eac4f7c-81d6-48a7-9a4a-c8f20ceba7b5/dane_aplikacji/docker. I run on the docker the nextcloud server app from the docker-compose file:
version: '3'
services:
proxy:
image: jwilder/nginx-proxy:alpine
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
container_name: nextcloud-proxy
networks:
- nextcloud_network
ports:
- 88:80
- 444:443
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- ./proxy/certs:/etc/nginx/certs:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=444
restart: unless-stopped
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nextcloud-letsencrypt
depends_on:
- proxy
cap_add:
- NET_ADMIN
networks:
- nextcloud_network
environment:
- PUID=998 #change PUID if needed
- PGID=100 #change PGID if needed
- TZ=Europe/Warsaw # change Time Zone if needed
- URL=myurl.duckdns.org
- SUBDOMAINS=www
- VALIDATION=https
- EMAIL=myaccount#gmail.com
volumes:
- ./proxy/certs:/etc/nginx/certs:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
db:
image: mariadb
command: --skip-innodb-read-only-compressed
container_name: nextcloud-mariadb
networks:
- nextcloud_network
volumes:
- db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD= SUPER_PASSWORD
- MYSQL_PASSWORD=SUPER_PASSWORD
- MYSQL_USER=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_HOST=db
restart: unless-stopped
app:
image: nextcloud:latest #ghcr.io/linuxserver/nextcloud
container_name: nextcloud-app
hostname: myurl.duckdns.org
networks:
- nextcloud_network
depends_on:
- letsencrypt
- proxy
- db
volumes:
- nextcloud:/var/www/html:z
- ./app/config:/var/www/html/config
- ./app/custom_apps:/var/www/html/custom_apps
- /srv/dev-disk-by-uuid-9eac4f7c-81d6-48a7-9a4a-c8f20ceba7b5/nextcloud:/var/www/html/data
- ./app/themes:/var/www/html/themes
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Europe/Warsaw
- VIRTUAL_HOST=myurl.duckdns.org
- LETSENCRYPT_HOST=myurl.duckdns.org:444
- LETSENCRYPT_EMAIL=myaccount#gmail.com
- PHP_MEMORY_LIMIT=20G
- MYSQL_ROOT_PASSWORD=SUPER_PASSWORD
- MYSQL_PASSWORD=SUPER_PASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_HOSTNAME=myurl.duckdns.org
restart: unless-stopped
news-updater:
image: kr3ssh/nextcloud-news-updater
environment:
- INTERVAL=60
- NEXTCLOUD_URL=http://myurl.duckdns.org:88
- NEXTCLOUD_ADMIN_USER=PAN_ADMIN
- NEXTCLOUD_ADMIN_PASSWORD=SUPER_PASSWORD
restart: always
volumes:
nextcloud:
db:
networks:
nextcloud_network:
When I started to use the server i have only 16gb ssd inside and I had have docker files on the /srv/dev-disk-by-uuid-9eac4f7c-81d6-48a7-9a4a-c8f20ceba7b5/dane_aplikacji/docker but recently I installed 64gb ssd. I have taken OS img and installed it on the 64gb disk by rufus and expand partition. Docker and nextcloud work without no problem. Next I have copied docker file from /srv/dev-disk-by-uuid-9eac4f7c-81d6-48a7-9a4a-c8f20ceba7b5/dane_aplikacji/docker to /var/lib.docker and run docker from there by OMV web GUI. It was bad idea because nextcloud container hasn't worked. On the web page I only see:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
In the nextcloud log file I see:
[Sat Jan 15 15:14:11.109982 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.51 (Debian) PHP/8.0.14 configured -- resuming normal operations
[Sat Jan 15 15:14:11.110121 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
ITS.MYI.P - - [15/Jan/2022:15:14:12 +0100] "GET / HTTP/1.1" 500 717 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ITS.MYI.P Safari/537.36 Edg/ITS.MYI.P"
ITS.MYI.P - admin [15/Jan/2022:15:14:38 +0100] "GET /index.php/apps/news/api/v1-2/cleanup/before-update HTTP/1.1" 500 717 "-" "Python-urllib/3.7"
In the nginx log file I see:
Lines
100
Actions
nginx.1 | 2022/01/15 15:14:08 [notice] 24#24: start worker processes
nginx.1 | 2022/01/15 15:14:08 [notice] 24#24: start worker process 30
nginx.1 | 2022/01/15 15:14:08 [notice] 24#24: start worker process 31
nginx.1 | 2022/01/15 15:14:08 [notice] 24#24: start worker process 32
nginx.1 | 2022/01/15 15:14:08 [notice] 24#24: start worker process 33
dockergen.1 | 2022/01/15 15:14:08 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
dockergen.1 | 2022/01/15 15:14:08 Watching docker events
dockergen.1 | 2022/01/15 15:14:08 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
nginx.1 | myurl.duckdns.org ITS.MYI.P - admin [15/Jan/2022:15:14:08 +0100] "GET /index.php/apps/news/api/v1-2/cleanup/before-update HTTP/1.1" 503 190 "-" "Python-urllib/3.7" "-"
dockergen.1 | 2022/01/15 15:14:09 Received event start for container 70f8ad9b1266
dockergen.1 | 2022/01/15 15:14:09 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
nginx.1 | myurl.duckdns.org ITS.MYI.P - - [15/Jan/2022:15:14:09 +0100] "GET / HTTP/1.1" 503 592 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ITS.MYI.P Safari/537.36 Edg/ITS.MYI.P" "-"
dockergen.1 | 2022/01/15 15:14:10 Received event start for container 94b2d83900f4
dockergen.1 | 2022/01/15 15:14:10 Generated '/etc/nginx/conf.d/default.conf' from 10 containers
dockergen.1 | 2022/01/15 15:14:10 Running 'nginx -s reload'
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 1 (SIGHUP) received from 37, reconfiguring
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: reconfiguring
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: using the "epoll" event method
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: start worker processes
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: start worker process 38
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: start worker process 39
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: start worker process 40
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: start worker process 41
nginx.1 | 2022/01/15 15:14:10 [notice] 30#30: gracefully shutting down
nginx.1 | 2022/01/15 15:14:10 [notice] 31#31: gracefully shutting down
nginx.1 | 2022/01/15 15:14:10 [notice] 30#30: exiting
nginx.1 | 2022/01/15 15:14:10 [notice] 32#32: gracefully shutting down
nginx.1 | 2022/01/15 15:14:10 [notice] 32#32: exiting
nginx.1 | 2022/01/15 15:14:10 [notice] 30#30: exit
nginx.1 | 2022/01/15 15:14:10 [notice] 32#32: exit
nginx.1 | 2022/01/15 15:14:10 [notice] 33#33: gracefully shutting down
nginx.1 | 2022/01/15 15:14:10 [notice] 33#33: exiting
nginx.1 | 2022/01/15 15:14:10 [notice] 33#33: exit
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 17 (SIGCHLD) received from 33
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: worker process 33 exited with code 0
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 29 (SIGIO) received
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 17 (SIGCHLD) received from 32
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: worker process 32 exited with code 0
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 29 (SIGIO) received
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 17 (SIGCHLD) received from 30
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: worker process 30 exited with code 0
nginx.1 | 2022/01/15 15:14:10 [notice] 24#24: signal 29 (SIGIO) received
nginx.1 | 2022/01/15 15:14:11 [notice] 31#31: exiting
I try with chmod 775 for /srv/dev-disk-by-uuid-9eac4f7c-81d6-48a7-9a4a-c8f20ceba7b5/nextcloud, /var/www and /var/lib/docker reinstalation apache2 and installation php and effect is the same.

Related

Docker Compose exit code 137 for NGINX still after doubled my RAM

I just doubled my RAM just to check if the error is actually because of RAM, but I don't think so, still failing with below issue after double the RAM
Attaching to nginx
nginx | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx | 2022/11/01 07:18:38 [notice] 1#1: using the "epoll" event method
nginx | 2022/11/01 07:18:38 [notice] 1#1: nginx/1.23.2
nginx | 2022/11/01 07:18:38 [notice] 1#1: built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219)
nginx | 2022/11/01 07:18:38 [notice] 1#1: OS: Linux 5.4.0-131-generic
nginx | 2022/11/01 07:18:38 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx | 2022/11/01 07:18:38 [notice] 1#1: start worker processes
nginx | 2022/11/01 07:18:38 [notice] 1#1: start worker process 29
nginx | 2022/11/01 07:18:38 [notice] 1#1: start worker process 30
nginx exited with code 137
compose file:
version: '3.8'
services:
nginx:
container_name: nginx
image: nginx:1.23.2-alpine
restart: always
ports:
- 80:80
- 443:443
volumes:
- /opt/aaa/conf/nginx/:/etc/nginx/conf.d/
- /opt/aaa/letsencrypt:/etc/letsencrypt/
- /var/www/html/.well-known:/code/well-known
- /etc/ssl/dhparam.pem:/etc/ssl/dhparam.pem
- /opt/aaa/website/static:/code/static
- /opt/aaa/install:/opt/install
networks:
- mehere
networks:
personal:
name: mehere
This is happening starting today, after a script just renewed my certs from letsencrypt.
Any idea please?
I'm just silly.
I had a script that removed that container nginx :-)

nginx to reverse proxy 2 local lambdas in docker containers

I have 2 lambda functions wrapped in docker containers and am using docker compose to run them together. One runs on port 9000 the other on port 9001. I am trying to use nginx to allow them to both be reachable on the same port locally. I am able to hit each lambda individually at their respective port in postman at
localhost:9000/2015-03-31/functions/function/invocations
but not at the nginx mapped port.
Here is my default.conf
server {
listen 80;
server_name localhost;
location /user-api/ {
proxy_pass http://127.0.0.1:9000/2015-03-31/functions/function/invocations;
}
location /cart-api/ {
proxy_pass http://127.0.0.1:9001/2015-03-31/functions/function/invocations;
}
}
Here is my docker-compose.yml
version: "3.7"
services:
user-api:
build: ./app/lambdas/user-api
ports:
- 9000:8080
env_file:
- .env
cart-api:
build: ./app/lambdas/cart-api
ports:
- 9001:8080
env_file:
- .env
nginx-proxy:
depends_on:
- user-api
- cart-api
image: nginx:alpine
volumes:
- $PWD/default.conf:/etc/nginx/conf.d/default.conf
networks:
my-network-name:
aliases:
- api-g-way
ports:
- 1234:80
networks:
my-network-name:
Here is the terminal output when I try to access either one
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 3/0
⠿ Container my-lambdas-cart-api-1 Created 0.0s
⠿ Container my-lambdas-user-api-1 Created 0.0s
⠿ Container my-lambdas-nginx-proxy-1 Created 0.0s
Attaching to my-lambdas-cart-api-1, my-lambdas-nginx-proxy-1, my-lambdas-user-api-1
my-lambdas-cart-api-1 | 22 Oct 2022 19:20:35,282 [INFO] (rapid) exec '/var/runtime/bootstrap' (cwd=/var/task, handler=)
my-lambdas-user-api-1 | 22 Oct 2022 19:20:35,301 [INFO] (rapid) exec '/var/runtime/bootstrap' (cwd=/var/task, handler=)
my-lambdas-nginx-proxy-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
my-lambdas-nginx-proxy-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
my-lambdas-nginx-proxy-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
my-lambdas-nginx-proxy-1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
my-lambdas-nginx-proxy-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
my-lambdas-nginx-proxy-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
my-lambdas-nginx-proxy-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
my-lambdas-nginx-proxy-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: using the "epoll" event method
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: nginx/1.23.2
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219)
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: OS: Linux 5.10.124-linuxkit
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: start worker processes
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: start worker process 29
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: start worker process 30
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: start worker process 31
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: start worker process 32
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:35 [notice] 1#1: start worker process 33
my-lambdas-nginx-proxy-1 | 172.19.0.1 - - [22/Oct/2022:19:20:40 +0000] "POST /user-api HTTP/1.1" 502 157 "-" "PostmanRuntime/7.29.2" "-"
my-lambdas-nginx-proxy-1 | 2022/10/22 19:20:40 [error] 29#29: *1 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XXX, server: localhost, request: "POST /user-api HTTP/1.1", upstream: "http://127.0.0.1:9000/2015-03-31/functions/function/invocations", host: "127.0.0.1:1234"
It seems to be hitting the correct upstream address but I am getting connection refused. Bear in mind this is my first time using nginx. Any help would be appreciated!

[emerg]: host not found in upstream

I'm a little confused. I am trying to build a Flask application and am deploying it in a docker image with nginx as the web server. After I run docker-compose up I am able to get the containers into a running state but in the output of the command I get the following: [emerg] 1#1: host not found in upstream "flask:8000" in in /etc/nginx/nginx.conf:12. The odd thing is if I access localhost I'm able to see the application working. I don't know if this is something I need to address, since it's working? Additionally, I'm trying to setup redirects from HTTP to HTTPS, that seems to not work. Below is my docker-compose file and the nginx.conf file, and the docker file I have for the nginx container. Any advice would be helpful.
Docker Compose
version: "3"
services:
app:
build: ./app
container_name: containerize_app_1
command: gunicorn --chdir app/src --bind 0.0.0.0:8000 --workers 2 "server:app"
volumes:
- ./:/var/www
expose:
- 8000
networks:
- MyNetwork
nginx:
build: ./nginx
container_name: containerize_nginx_1
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
depends_on:
- app
networks:
MyNetwork:
aliases:
- flask-app
networks:
MyNetwork:
nginx.conf
user nginx nginx;
worker_processes 2;
error_log /var/log/nginx/error.log;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
}
http {
upstream flask-app {
server app:8000;
}
server {
listen 80;
server_name localhost;
return 301 https://$host$request_uri;
location / {
proxy_pass http://flask-app;
proxy_set_header Host "localhost";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
}
}
nginx dockerfile
FROM nginx
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
docker-compose up
docker-compose up
containerize_app_1 is up-to-date
containerize_nginx_1 is up-to-date
Attaching to containerize_app_1, containerize_nginx_1
app_1 | [2021-12-14 21:48:01 +0000] [1] [INFO] Starting gunicorn 19.9.0
app_1 | [2021-12-14 21:48:01 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
app_1 | [2021-12-14 21:48:01 +0000] [1] [INFO] Using worker: sync
app_1 | [2021-12-14 21:48:01 +0000] [12] [INFO] Booting worker with pid: 12
app_1 | [2021-12-14 21:48:01 +0000] [13] [INFO] Booting worker with pid: 13
app_1 | [2021-12-14 22:21:03 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:12)
app_1 | [2021-12-14 22:21:03 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:13)
app_1 | [2021-12-14 22:21:03 +0000] [13] [INFO] Worker exiting (pid: 13)
app_1 | [2021-12-14 22:21:03 +0000] [12] [INFO] Worker exiting (pid: 12)
app_1 | [2021-12-14 22:21:03 +0000] [14] [INFO] Booting worker with pid: 14
app_1 | [2021-12-14 22:21:04 +0000] [15] [INFO] Booting worker with pid: 15
app_1 | [2021-12-14 22:27:44 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:14)
app_1 | [2021-12-14 22:27:44 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:15)
app_1 | [2021-12-14 22:27:44 +0000] [14] [INFO] Worker exiting (pid: 14)
app_1 | [2021-12-14 22:27:44 +0000] [15] [INFO] Worker exiting (pid: 15)
app_1 | [2021-12-14 22:27:44 +0000] [16] [INFO] Booting worker with pid: 16
app_1 | [2021-12-14 22:27:45 +0000] [17] [INFO] Booting worker with pid: 17
app_1 | [2021-12-14 22:32:53 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:16)
app_1 | [2021-12-14 22:32:53 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:17)
app_1 | [2021-12-14 22:32:53 +0000] [16] [INFO] Worker exiting (pid: 16)
app_1 | [2021-12-14 22:32:53 +0000] [17] [INFO] Worker exiting (pid: 17)
app_1 | [2021-12-14 22:32:53 +0000] [18] [INFO] Booting worker with pid: 18
app_1 | [2021-12-14 22:32:53 +0000] [19] [INFO] Booting worker with pid: 19
app_1 | [2021-12-14 22:42:31 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:18)
app_1 | [2021-12-14 22:42:31 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:19)
app_1 | [2021-12-14 22:42:31 +0000] [19] [INFO] Worker exiting (pid: 19)
app_1 | [2021-12-14 22:42:31 +0000] [18] [INFO] Worker exiting (pid: 18)
app_1 | [2021-12-14 22:42:31 +0000] [20] [INFO] Booting worker with pid: 20
app_1 | [2021-12-14 22:42:31 +0000] [21] [INFO] Booting worker with pid: 21
app_1 | [2021-12-14 22:48:26 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:20)
app_1 | [2021-12-14 22:48:26 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:21)
app_1 | [2021-12-14 22:48:26 +0000] [21] [INFO] Worker exiting (pid: 21)
app_1 | [2021-12-14 22:48:26 +0000] [20] [INFO] Worker exiting (pid: 20)
app_1 | [2021-12-14 22:48:26 +0000] [22] [INFO] Booting worker with pid: 22
app_1 | [2021-12-14 22:48:26 +0000] [23] [INFO] Booting worker with pid: 23
app_1 | [2021-12-15 00:11:42 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:22)
app_1 | [2021-12-15 00:11:42 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:23)
app_1 | [2021-12-15 00:11:42 +0000] [23] [INFO] Worker exiting (pid: 23)
app_1 | [2021-12-15 00:11:42 +0000] [22] [INFO] Worker exiting (pid: 22)
app_1 | [2021-12-15 00:11:42 +0000] [24] [INFO] Booting worker with pid: 24
app_1 | [2021-12-15 00:11:42 +0000] [25] [INFO] Booting worker with pid: 25
app_1 | [2021-12-15 01:55:27 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:24)
app_1 | [2021-12-15 01:55:27 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:25)
app_1 | [2021-12-15 01:55:27 +0000] [24] [INFO] Worker exiting (pid: 24)
app_1 | [2021-12-15 01:55:27 +0000] [25] [INFO] Worker exiting (pid: 25)
app_1 | [2021-12-15 01:55:27 +0000] [26] [INFO] Booting worker with pid: 26
app_1 | [2021-12-15 01:55:27 +0000] [27] [INFO] Booting worker with pid: 27
app_1 | [2021-12-15 02:34:31 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:26)
app_1 | [2021-12-15 02:34:31 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:27)
app_1 | [2021-12-15 02:34:31 +0000] [27] [INFO] Worker exiting (pid: 27)
app_1 | [2021-12-15 02:34:31 +0000] [26] [INFO] Worker exiting (pid: 26)
app_1 | [2021-12-15 02:34:31 +0000] [28] [INFO] Booting worker with pid: 28
app_1 | [2021-12-15 02:34:31 +0000] [29] [INFO] Booting worker with pid: 29
nginx_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_1 | 2021/12/14 23:37:02 [emerg] 1#1: host not found in upstream "flask:8000" in /etc/nginx/nginx.conf:12
nginx_1 | nginx: [emerg] host not found in upstream "flask:8000" in /etc/nginx/nginx.conf:12
nginx_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_1 | 172.18.0.1 - - [14/Dec/2021:23:48:17 +0000] "GET / HTTP/1.1" 200 128 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15"
nginx_1 | 172.18.0.1 - - [15/Dec/2021:02:22:03 +0000] "GET / HTTP/1.1" 200 128 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15"

Multiple Flask app api's via Nginx gateway on the same port 80 gives 502 error

Tying to set up multiple flask API's via Nginx gateway (uwsgi) seems unable to add multiple locations / in the Nginx conf file. The authentication service seems working fine on port 80 but the streaming service always returns 502.
Structure (with docker files)
-authentication - It works fine
-streaming - Gives 502 http://127.0.0.1/devapp/api/v1/home/list
-ngix
Nginx config :
server {
listen 80;
location / {
include uwsgi_params;
uwsgi_pass authentication:8080;
}
location /devapp/ {
include uwsgi_params;
uwsgi_pass streaming:8081;
} }
uwsgi.ini: (for the streaming module)
#Contains uwsgi configurations
[uwsgi]
wsgi-file= run.py
callable = app
socket = :8081
processes = 4
threads = 2
master = true
chomod-socket = 660
vaccum = true
die-on-term = true
module = run
Nginx Log:
docker logs --tail=10 -f nginx
2021/09/13 02:19:51 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/09/13 02:19:51 [notice] 1#1: start worker processes
2021/09/13 02:19:51 [notice] 1#1: start worker process 23
2021/09/13 02:19:51 [notice] 1#1: start worker process 24
2021/09/13 02:19:51 [notice] 1#1: start worker process 25
2021/09/13 02:19:51 [notice] 1#1: start worker process 26
2021/09/13 02:19:51 [notice] 1#1: start worker process 27
2021/09/13 02:19:51 [notice] 1#1: start worker process 28
2021/09/13 02:21:23 [error] 23#23: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.21.0.1, server: , request: "GET /devapp/api/v1/home/list HTTP/1.1", upstream: "uwsgi://172.21.0.3:8081", host: "127.0.0.1"
172.21.0.1 - - [13/Sep/2021:02:21:23 +0000] "GET /devapp/api/v1/home/list HTTP/1.1" 502 157 "-" "PostmanRuntime/7.26.8" "-"

Why running laravel app under jwilder/nginx-proxy I got 503 Service Temporarily Unavailable error?

Running laravel project based on jwilder/nginx-proxy I got error in browser
503 Service Temporarily Unavailable
nginx/1.21.1
with url:
http://127.0.0.1:80
Running docker and checking containers in my OS I see :
$ docker-compose up -d
nginx-projectname is up-to-date
php-radius is up-to-date
mysql-projectname is up-to-date
php-userend is up-to-date
php-projectname is up-to-date
user#HostingOS:/ProjectPath/lml$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b4ccbc8fdeda roneichiarandi/php71-alpine "/entrypoint.sh php-…" 3 hours ago Up 21 minutes 0.0.0.0:32770->9000/tcp php-projectname
0b16d2c805df mysql:latest "docker-entrypoint.s…" 3 hours ago Up 20 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp mysql-projectname
8b9f111aa298 roneichiarandi/php71-alpine "/entrypoint.sh php-…" 3 hours ago Up 21 minutes 0.0.0.0:32768->9000/tcp php-radius
3ae492cfdd89 roneichiarandi/php71-alpine "/entrypoint.sh php-…" 3 hours ago Up 21 minutes 0.0.0.0:32769->9000/tcp php-userend
2db8d9b0901e jwilder/nginx-proxy:latest "/app/docker-entrypo…" 3 hours ago Up 20 minutes 0.0.0.0:80->80/tcp nginx-projectname
9b9bf003a1a3 jwilder/nginx-proxy "/app/docker-entrypo…" 7 hours ago Exited (2) 6 hours ago inspiring_lovelace
05626a8da615 jwilder/nginx-proxy "/app/docker-entrypo…" 7 hours ago Created adoring_goldwasser
e5dddc493fe2 adminer "entrypoint.sh docke…" 8 months ago Up 2 hours 0.0.0.0:8095->8080/tcp gotoconsult_adminer
0c6a52f43a8b mysql:5.7.28 "docker-entrypoint.s…" 8 months ago Restarting (1) 44 seconds ago gotoconsult_db
docker-compose.yml :
version: '2'
services:
nginx: # NGINX-PROXY
image: 'jwilder/nginx-proxy:latest'
container_name: 'nginx-projectname'
ports:
- '80:80'
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock
- ./docker/nginx.tmpl:/app/nginx.tmpl
- .:/var/www/html
# PHP7-alpine fpm
php:
container_name: 'php-projectname'
image: 'roneichiarandi/php71-alpine'
ports:
- "9000"
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/var/www/html
- ./logs:/tmp/logs
environment:
- VIRTUAL_HOST=projectname.dev
- VIRTUAL_PORT=
- PHP_FPM=1
links:
- 'radius'
extra_hosts:
- "radius.dev:172.18.0.1"
# PHP7-alpine fpm
userend:
container_name: 'php-userend'
# image: 'matriphe/alpine-php:fpm-5.6'
image: 'roneichiarandi/php71-alpine'
ports:
- "9000"
volumes:
- /etc/localtime:/etc/localtime:ro
- ../userend:/var/www/html
- ../userend/logs:/tmp/logs
environment:
- VIRTUAL_HOST=userend.dev
- VIRTUAL_PORT=
- PHP_FPM=1
# PHP7-alpine fpm
radius:
container_name: 'php-radius'
image: 'roneichiarandi/php71-alpine'
ports:
- "9000"
volumes:
- /etc/localtime:/etc/localtime:ro
- ../radius:/var/www/html
- ../radius/logs:/tmp/logs
environment:
- VIRTUAL_HOST=radius.dev
- VIRTUAL_PORT=
- PHP_FPM=1
mysql:
container_name: 'mysql-projectname'
image: 'mysql:latest'
ports:
- "3306:3306"
volumes:
- /etc/localtime:/etc/localtime:ro
- mysqlvolume:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=projectname
volumes:
mysqlvolume:
I suppose url is valid
http://127.0.0.1:80
but what have I check in nginx options?
MODIFIED :
Checking nginx logs I see :
user#HostingOS:/ProjectPath$ docker-compose logs nginx
Attaching to projectname
projectname | WARNING: /etc/nginx/dhparam/dhparam.pem was not found. A pre-generated dhparam.pem will be used for now while a new one
projectname | is being generated in the background. Once the new dhparam.pem is in place, nginx will be reloaded.
projectname | forego | starting dockergen.1 on port 5000
projectname | forego | starting nginx.1 on port 5100
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: using the "epoll" event method
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: nginx/1.21.1
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: built by gcc 8.3.0 (Debian 8.3.0-6)
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: OS: Linux 4.15.0-128-generic
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: getrlimit(RLIMIT_NOFILE): 1048576:1048576
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: start worker processes
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: start worker process 34
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: start worker process 35
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: start worker process 36
projectname | nginx.1 | 2021/09/01 10:31:56 [notice] 27#27: start worker process 37
projectname | dockergen.1 | 2021/09/01 10:31:57 Generated '/etc/nginx/conf.d/default.conf' from 7 containers
projectname | dockergen.1 | 2021/09/01 10:31:57 Running 'nginx -s reload'
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: signal 1 (SIGHUP) received from 40, reconfiguring
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: reconfiguring
projectname | dockergen.1 | 2021/09/01 10:31:57 Watching docker events
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: using the "epoll" event method
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: start worker processes
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: start worker process 44
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: start worker process 45
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: start worker process 46
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: start worker process 47
projectname | dockergen.1 | 2021/09/01 10:31:57 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 34#34: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 35#35: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 36#36: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 34#34: exiting
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 35#35: exiting
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 36#36: exiting
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 34#34: exit
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 35#35: exit
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 36#36: exit
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 37#37: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 37#37: exiting
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 37#37: exit
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: signal 17 (SIGCHLD) received from 34
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: worker process 34 exited with code 0
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: worker process 35 exited with code 0
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: worker process 36 exited with code 0
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: signal 29 (SIGIO) received
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: signal 17 (SIGCHLD) received from 37
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: worker process 37 exited with code 0
projectname | nginx.1 | 2021/09/01 10:31:57 [notice] 27#27: signal 29 (SIGIO) received
projectname | dockergen.1 | 2021/09/01 10:32:00 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:32:00 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | 2021/09/01 10:32:02 [notice] 49#49: signal process started
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 1 (SIGHUP) received from 49, reconfiguring
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: reconfiguring
projectname | Generating DSA parameters, 4096 bit long prime
projectname | dhparam generation complete, reloading nginx
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: using the "epoll" event method
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: start worker processes
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: start worker process 51
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: start worker process 52
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: start worker process 53
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: start worker process 54
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 44#44: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 45#45: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 46#46: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 47#47: gracefully shutting down
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 44#44: exiting
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 45#45: exiting
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 47#47: exiting
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 46#46: exiting
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 44#44: exit
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 45#45: exit
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 47#47: exit
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 46#46: exit
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 17 (SIGCHLD) received from 47
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: worker process 47 exited with code 0
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 29 (SIGIO) received
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 17 (SIGCHLD) received from 46
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: worker process 44 exited with code 0
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: worker process 46 exited with code 0
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 29 (SIGIO) received
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 17 (SIGCHLD) received from 45
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: worker process 45 exited with code 0
projectname | nginx.1 | 2021/09/01 10:32:02 [notice] 27#27: signal 29 (SIGIO) received
projectname | dockergen.1 | 2021/09/01 10:32:03 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:32:03 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:32:29 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:32:29 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:32:32 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:32:32 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | nginx.1 | 213.109.234.130 83.4.217.73 - - [01/Sep/2021:10:33:21 +0300] "GET / HTTP/1.1" 503 197 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7"
projectname | dockergen.1 | 2021/09/01 10:33:24 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:33:24 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:33:26 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:33:27 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:34:27 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:34:27 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:34:29 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:34:30 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:35:30 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:35:31 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:35:33 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:35:33 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:36:34 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:36:34 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:36:36 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:36:36 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:37:37 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:37:37 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:37:39 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:37:40 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | nginx.1 | 213.109.234.130 205.185.126.200 - - [01/Sep/2021:10:37:54 +0300] "POST /boaform/admin/formLogin HTTP/1.1" 503 197 "http://213.109.234.130:80/admin/login.asp" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0"
projectname | nginx.1 | _ 205.185.126.200 - - [01/Sep/2021:10:37:56 +0300] "" 400 0 "-" "-"
projectname | dockergen.1 | 2021/09/01 10:38:40 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:38:40 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:38:42 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:38:43 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:39:43 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:39:43 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:39:46 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:39:46 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:40:47 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:40:47 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:40:49 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:40:49 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:41:50 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:41:50 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:41:52 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:41:53 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:42:53 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:42:53 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:42:56 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:42:56 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:43:57 Received event start for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:43:57 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | dockergen.1 | 2021/09/01 10:43:59 Received event die for container 0c6a52f43a8b
projectname | dockergen.1 | 2021/09/01 10:43:59 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
projectname | SIGQUIT: quit
Any hints how it can be checked/fixed ?
Entering the bas with command :
docker-compose exec nginx bash
I check root directory and find file dhparam.pem.default:
root#2db8d9b0901e:/app# ls -la
total 112
drwxr-xr-x 4 root root 4096 Aug 30 03:03 .
drwxr-xr-x 1 root root 4096 Sep 1 10:31 ..
-rw-rw-rw- 1 root root 54 Aug 30 03:01 .dockerignore
drwxrwxrwx 3 root root 4096 Aug 30 03:01 .github
-rw-rw-rw- 1 root root 34 Aug 30 03:01 .gitignore
-rw-rw-rw- 1 root root 2244 Aug 30 03:01 Dockerfile
-rw-rw-rw- 1 root root 2223 Aug 30 03:01 Dockerfile.alpine
-rw-rw-rw- 1 root root 1079 Aug 30 03:01 LICENSE
-rw-rw-rw- 1 root root 472 Aug 30 03:01 Makefile
-rw-rw-rw- 1 root root 115 Aug 30 03:01 Procfile
-rw-rw-rw- 1 root root 29137 Aug 30 03:01 README.md
-rw-rw-rw- 1 root root 424 Aug 30 03:01 dhparam.pem.default
-rw-rw-rw- 1 root root 534 Aug 30 03:01 docker-compose-separate-containers.yml
-rw-rw-rw- 1 root root 281 Aug 30 03:01 docker-compose.yml
-rwxrwxrwx 1 root root 1448 Aug 30 03:01 docker-entrypoint.sh
-rwxrwxrwx 1 root root 2058 Aug 30 03:01 generate-dhparam.sh
-rw-rw-rw- 1 root root 133 Aug 30 03:01 network_internal.conf
-rwxrwxrwx 1 root root 10096 Aug 31 18:26 nginx.tmpl
drwxrwxrwx 14 root root 4096 Aug 30 03:01 test
root#2db8d9b0901e:/app# cat dhparam.pem.default
-----BEGIN DH PARAMETERS-----
MIIBCAKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXBAg==
-----END DH PARAMETERS-----
but not requested dhparam.pem file ?
I run the docker with command :
docker-compose up -d
Can it be that I have to run docker command with some parameters dealing dhparam.pem file?
Like copying into into app root ?
Thanks!

Resources