January 2019
Intermediate to advanced
520 pages
14h 32m
English
We started the application by attaching the terminal to the output of the containers, but that's inconvenient if you want to deploy an application to a remote server. To detach the terminal, use the -d parameter when you start:
docker-compose -f docker-compose.prod.yml up -d
This will start the application with a persistent state, and print something like the following:
Starting deploy_db_1 ... doneStarting deploy_smtp_1 ... doneStarting deploy_dbsync_1 ... doneStarting deploy_mails_1 ... doneStarting deploy_content_1 ... doneStarting deploy_users_1 ... doneStarting deploy_router_1 ... done
It also detaches from the Terminal. You might ask: How can I read the logs that microservices print using
Read now
Unlock full access