Hey tech687,
To get faster answers, maybe you should put a bit of efforts into explaining your problem. Like, you know, formatting and such
Now, for what I understand, you just want to change the name of your container. In docker-compose, you can do this by setting the “container_name” property on any of your containers.
For example:
db:
image: mysql:5.7
container_name: db
If you don’t want to change the container name, but needs ‘user-friendly’ names for discovery, you can as well set the ‘hostname’ property, or you can add network aliases, like such:
db:
image: mysql:5.7
container_name: mycontainername
hostname: myhostname
networks:
default:
aliases:
myalias
I hope this helps
Regards
P.S: Feel free to consult docker-compose documentation for information, it will save you 6 months sitting on your hands instead of a simple… google search ^^