Requirements:
You could use
ctopfor monitoring docker containers. Please visit https://github.com/bcicen/ctop
About this stack:
- [nginx:1.15-alpine] : Use
https://www.api.trqs:8443with this configuration :sudo sh -c "echo '127.0.0.1 www.api.trqs' >> /etc/hosts" - [php:7.3-fpm-alpine]
- [redis:4-alpine] Check "About: Redis" section.
- [mysql:8]
| For short | Custom command | Purpose |
|---|---|---|
| BUILD | bin/docker build |
Build the app |
| RUN | bin/docker run |
Run the app |
| STOP | bin/docker stop |
Stop the app |
| DESTROY | bin/docker destroy |
Destroy the app |
| INSTALL | bin/docker install |
Install the app & demo db content |
| EXPELLIARMUS | bin/docker expelliarmus |
Prune docker env |
| AVADAKEDAVRA | bin/docker avadakedavra |
Stop then destroy containers + images |
| For short | Custom command | Purpose |
|---|---|---|
| EXEC-PHP | bin/docker exec-php [ARGS] |
Execute a command inside the php container |
| EXEC-ROOT | bin/docker exec-php-root [ARGS] |
Execute a command as ROOT inside the php container |
| BASH | bin/docker bash |
Access /bin/bash or sh (alpine) |
| COMPOSER | bin/docker composer [ARGS] |
Execute composer |
| SYMFONY | bin/docker console [ARGS] |
Execute Symfony's console (bin/console) |
| For short | Custom command | Purpose |
|---|---|---|
| PS | bin/docker ps |
List all running containers |
About: Redis
Check configuration using : docker-compose exec redis redis-cli ping.
It should display PONG!