如何 运行 phpBB in Docker with NGINX, php 安装在与数据库不同的主机上?

How to run phpBB in Docker with NGINX, php installed on a different host than the database?

我如何 运行 Docker 带有 NGINX 的图像,phpBB(以及所有必需的东西,如 php 安装)具有持久性(板上的更改应该'丢失)和另一台主机上的数据库(已经存在)。因此,假设我有以下内容:MySQL 在 192.168.2.233(本地地址)上,在端口 3307 运行ning 上。现在我想用 Alpine Linux(可能是最小的)、NGINX 和 phpBB 创建一个 Docker 图像,其中板 运行s 在 NGINX 网络服务器上并连接到数据库。面板上的更改(例如更改网络服务器设置等)应保留在容器中。我该怎么做?

编辑:

服务器192.168.2.233上的数据库已经存在!所以不,我不需要两个或更多 Docker 个容器。我需要一个 Docker 容器,在 NGINX 网络服务器上使用 phpBB 运行ning 并连接到同一网络中另一台主机上的数据库。容器应使用持久性(卷)来保存在 phpBB 中所做的设置。

我尝试使用以下 Docker 文件并对其进行了修改: https://gitlab.com/boxedcode/alpine-nginx-php-fpm/blob/master/Dockerfile --> https://drive.google.com/open?id=1CW68OFCJE9RjIe8_RBC8q5Fa6juRtxmR

与另一个存储库的所有者一起,我现在在这里找到了一个解决方案(但是使用 Apache):https://github.com/blueimp/phpbb/issues/1. After a few errors and problems from my side, I figured it out. The solution I'm using now is placed here: https://github.com/SeppPenner/DockerApacheSSLphpBB