Star
Try it

How to edit a service in a docker-compose ?

How to edit a service in a docker-compose ? Once you have added a service or any other docker-compose components, you can simply click on it. Then on the editor tab an edit menu will appear !

In the service editor you can do many things :

The general tab (1) :

In the general tab you can set the image, her tag, the condition restart or command and entry-point for the docker-compose service.

The volume tab (2) :

In the volume tab you can assign new bindings, or edit any linked volumes or binding target inside the container.

Example: the docker volume « data » with the target /var/data will be mounted under /var/data inside the container.

The networking tab (3) :

In the networking tab you mainly can expose service port to the host.

Example: by setting Host port on 8080 and Container one on 80, the localhost:8080 of the host running the docker-compose is forwarded to the container localhost:80 inside the container

The health tab (4) :

The Health tab is more specific and complex, you can refer to the official docker-compose documentation about healthcheck