How to only restart one service in docker
I am trying to start 3 services in docker-compose.yml service1: image: <image-for service1> service2: image: <image-for service1> tomcatservice: image: tomcat:8.0.20-jre8 depends_on: - service1 - service2 volumes: - ./target/myapp.war:/usr/local/tomcat/webapp/myapp.war expose: - "8080" links: - service1 - service2 this i am want to restart only tomcatservice with: latest maven build of my app code no changes in other 2 services so nothing needs to be done for them
Once you've updated ./target/myapp.war, you just need to docker-compose restart tomcatservice to restart the service. If you have changed the service at all in docker-compose.yml, you can instead do docker-compose up -d tomcatservice to rebuild it and restart it.
Azure Container Service: Update Docker-Compose?
Docker compose: doesnt allow to use constraints if you have a env variable set
How to use visual studio docker function on Windows Home edition?
Passing arguments to docker compose file when using it for swarm
How to run ad hoc docker compose commands in Ansible?
Using custom hostnames for docker local development containers
Changing the network name?
Let external container know about subnets created by multiple docker-compose projects
How to monitor / discover more docker containers with prometheus
two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME
docker compose 3.1(swarm), secrets, ssl and nginx
What is the version directive for?
How to run docker-compose up -d at system start up?
In Docker Compose can I have services exiting
Docker compose - secrets Additional property secrets is not allowed
docker-compose mounted volume remain