opendata.cern.ch
opendata.cern.ch copied to clipboard
installation: harmonise service names
Currently-used container names in our docker setup are:
- wdb
- web
- worker
- web-files
- postgresql
- redis
- elasticsearch
- elasticsearch-proxy
- rabbitmq
- nginx
- static
This has some drawbacks, e.g. the notion of "web" is wider than the sole application node, e.g. sometimes we use technology-based names ("nginx", "redis") and sometimes function-based names ("proxy", "cache").
We can standardise all names to use some homogeneous schema, for example:
-
<service>-<function>
to have web-app
, web-files
, web-proxy
, denoting web service and various containers serving various aspects of the service.
The attention should be paid to the OpenShift service naming as well.
The current names in openshift qa and prod are:
cache
logstash
mq (not in dev)
proxy
web
web-files
On top of that, openshift dev has:
db
search
I think that the two extra from dev should be deleted.
Then, in docker compose, we use:
wdb (only on dev)
web
worker
web-files
postgresql
redis
opensearch
opensearch-dashboards
rabbitmq
nginx (only on prod)
I would prefer to touch the docker naming instead of the openshift, so I would suggest:
- Dropping worker
- Rename redis to cache
- rename nginx to proxy
- rename rabbitmq to mq
- rename postgrsql to db
- rename opensearch to search
- rename opensearch-dashboards to search-ui
And this might be a good moment to move from two independent docker compose files to a merging of files. The example is exactly what we want