Custom installation of ERPNext reachable remote with Docker Apache2

I made the correction.

I gave again:

docker compose -f pwd.yml up -d

I seems it started without error in fact no repository is restarting:

$ sudo docker ps
CONTAINER ID   IMAGE                             COMMAND                  CREATED         STATUS                   PORTS                                                    NAMES
f8b76e4d3642   frappe/erpnext:latest             "nginx-entrypoint.sh"    7 minutes ago   Up 7 minutes             0.0.0.0:8081->8080/tcp, [::]:8081->8080/tcp              frappe_docker-code-frontend-1
b349f9c294a3   frappe/erpnext:latest             "bench worker --queu…"   8 minutes ago   Up 7 minutes                                                                      frappe_docker-code-queue-long-1
08d4c49f8a32   frappe/erpnext:latest             "node /home/frappe/f…"   8 minutes ago   Up 7 minutes                                                                      frappe_docker-code-websocket-1
e32d7313350e   frappe/erpnext:latest             "bench worker --queu…"   8 minutes ago   Up 7 minutes                                                                      frappe_docker-code-queue-short-1
a2615699de33   frappe/erpnext:latest             "bench schedule"         8 minutes ago   Up 7 minutes                                                                      frappe_docker-code-scheduler-1
0ad77926ad64   redis:6.2-alpine                  "docker-entrypoint.s…"   2 days ago      Up 7 minutes             6379/tcp                                                 frappe_docker-code-redis-queue-1
f94ab8dcbbb2   mariadb:10.6                      "docker-entrypoint.s…"   2 days ago      Up 7 minutes (healthy)   3306/tcp                                                 frappe_docker-code-db-1
2657f66f120a   frappe/erpnext:latest             "/home/frappe/frappe…"   2 days ago      Up 7 minutes                                                                      frappe_docker-code-backend-1

Now the point is trying to connect to the website mysite.owndns.net from remote through a browser I got this:

Not Found

mysite.owndns.net does not exist.

Sites on this bench:

  • frontend

What could be the problem now?

@knimer @revant_one
After the automatic reboot of the server machine I found that the front-end is Restarting (1) 10 seconds ago then I checked the log output and I got this output: please read here
The reported error is: host not found in upstream "backend:8000" in /etc/nginx/conf.d/frappe.conf:2
What does it mean? Am I close to the solution?

Now connecting to the website I got this message:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


Apache/2.4.62 (Debian) Server at mysite.owndns.net Port 443

Now I have this common_site_config.json file:

$sudo docker exec -it frappe_docker-code-backend-1 cat /home/frappe/frappe-bench/sites/common_site_config.json
{
 "db_host": "db",
 "db_port": 3306,
 "default_site": "frontend",
 "developer_mode": 1,
 "host_name": "mysite.owndns.net",
 "redis_cache": "redis://redis-cache:6379",
 "redis_queue": "redis://redis-queue:6379",
 "redis_socketio": "redis://redis-queue:6379",
 "socketio_port": 9000,
 "webserver_port": 8081

but still the frontend is restarting with the same error

Can’t help you. Every few days/month I post a video of me starting pwd.yml.

Here is recent video Switch to Desk doesn't work · Issue #1549 · frappe/frappe_docker · GitHub

I might just add this months video because tests are only trusted by developers.