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.
Race conditions after changing names in docker-compose.yml
Docker compose - image not found
How to work out the hostname that compose gives containers?
docker-compose restart container if service is dead
Swarm scheduling not working as expected using filters in compose file
issues in buiding Slate with Docker
Invalid type error in Docker Compose
Django cookiecutter with Docker add pip package
Docker Compose + Swarm + Machine Networking issue
docker-compose build image parameters --force-rm --pull
linking 2 containers through docker compose
Files created by manage.py commands not chown'd from root user
Is it possible to create an intermediate image within docker-compose?
docker-compose service listen on specified interface
Does Docker-Compose allow overwriting of ports when using extends?
Jhipster Docker-compose conflict