Replies: 1 comment
|
Building the production image once in CI is fine. The certificate part is runtime configuration, not something that gets baked correctly into the image. In this template the {$SERVER_NAME:localhost} {
...
}So if the container starts without a real For each customer server I would keep the same pushed image, but pass per-server runtime env/config, for example: SERVER_NAME=customer1.example.com \
APP_SECRET=... \
CADDY_MERCURE_JWT_SECRET=... \
docker compose -f compose.yaml -f compose.prod.yaml up -dThen check these deployment details:
If TLS is terminated by a different reverse proxy/load balancer, then set this container to HTTP mode instead and let the outer proxy manage certificates. If the container itself should own TLS, the missing piece is usually the per-instance If this solves it, please mark this comment as the answer so other people can find it faster. |
Uh oh!
There was an error while loading. Please reload this page.
My plan is to build the app-php-prod container in my gitlab ci, push it to the registry and then pull it on several independent servers/instances (I am running a Saas where each client gets their own server/instance with the same App/Docker image running on it).
I have more than 70 Servers by now and dont think its nessesary to build the exact same Image on each server, everytime i deploy a new version.
So I created a new compose file, pulling my build image and running it.
The Container itself runs fine, but it creates no SSL Certificate.
The certificate is:
(CN) *.vm
Organisation (O) Docker Boilerplate
Organisational unit (OU) <Gehört nicht zum Zertifikat>
Does anyone know what I am missing?
Thanks in adavance!
All reactions