docker-compose

To run a project

docker-compose up -d

Rebuild project and run

docker-compose up --build

To stop all containers in the project

docker-compose down

To see list of containers started by docker-compose, run

docker-compose ps

To get container id for a container started by docer-compose, run

docker-compose ps -q NAME_OF_SERVICE

Example

root@ee:/opt/easyengine/services# docker-compose ps
            Name                           Command               State                    Ports                  
-----------------------------------------------------------------------------------------------------------------
services_global-db_1            docker-entrypoint.sh mysqld      Up      3306/tcp                                
services_global-nginx-proxy_1   /app/docker-entrypoint.sh  ...   Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
services_global-redis_1         docker-entrypoint.sh redis ...   Up      6379/tcp                                
root@ee:/opt/easyengine/services# docker-compose ps -q global-nginx-proxy
140191cb36add7be4f993bbff4a0f8a054d0985486831fcc669a80a577988a92
root@ee:/opt/easyengine/services# 

docker-compose: error while loading shared libraries
Docker compose start container on boot

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *