I'm trying to build Plone with docker-compose and the plone6-backend and plone6-frontend Docker Images.
My docker-compose.yml File looks like this:
version: '3'
services:
plone6-backend:
image: plone/plone-backend:6.0
container_name: plone6-backend
restart: unless-stopped
ports:
- 8080:8080
environment:
- SITE=Plone
- CORS_ALLOW_ORIGIN='*'
- LISTEN_PORT=8080
plone6-frontend:
image: plone/plone-frontend:latest
container_name: plone6-frontend
restart: unless-stopped
ports:
- 3000:3000
depends_on:
- plone6-backend
environment:
- RAZZLE_API_PATH=https://[$ONLINE_URL]/
- RAZZLE_INTERNAL_API_PATH=http://backend:8080/Plone
links:
- plone6-backend:backend
I'm using an apache2 Server with the following Configuration:
<VirtualHost [$ONLINE_URL]:80>
ServerName [$ONLINE_URL]
ServerAlias [$ONLINE_URL]
ProxyPass / https://localhost:3000/
ProxyPassReverse / https://localhost:3000/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost [$ONLINE_URL]:443>
ServerName [$ONLINE_URL]
ServerAlias [$ONLINE_URL]
SSLProxyEngine On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyPass /++api++ http://localhost:8080/
ProxyPassReverse /++api++ http://localhost:8080/
SSLEngine on
SSLCertificateFile [$CERT_FILE]
SSLCertificateKeyFile [$CERT_KEY_FILE]
</VirtualHost>
</IfModule>
The Problem is: When I start the Server, wait until it's completely up and healthy and open the Online URL in the Browser and click on the Login Link I get the following URL in the Browser:
https://[$ONLINE_URL]/login?return_url=:null:3000
Where does that ':null:3000' part after ?return_url come from, what do I have to configure in my docker-compose.yml to get rid of it?
Do you have other suggestions how I can improve the "Configuration" (i.e. the docker-compose.yml File or the Apache Configuration?