List simple commands run in project root.
composer server init
create project docker folder, prepare docker envcomposer server up
run server see morecomposer server down
stop server see morecomposer server restart
sequential execution of commandsdown
andup
composer server compile
only generate .env filecomposer server "logs server"
shown logs serviceserver
composer server-run server "ls -l"
create serviceserver
, run commandls -l
inside container and remove servicecomposer server-exec server "ls -l"
run command inside exist running serviceserver
composer server-deploy-dev
deploy you code to remote server (add to your composer file"server-deploy-prod": "vendor/bin/site-deploy.sh --env-file=docker/.env-dev"
)
nginx -s reload
reload all configs (use after run/scripts/init-nginx.sh
)
service php7.4-fpm start|stop|status|restart|reload|force-reload
php-fpm commands
service php7.4-fpm start|stop|status|restart|reload|force-reload
php-fpm commandssupervisorctl status
status all supervisor servicessupervisorctl stop all
stop all supervisor servicessupervisorctl start all
start all supervisor servicessupervisorctl restart all
restart all supervisor servicessupervisorctl restart service-name
restart service-name service
Run command:
ENV_PATH=/path-to-project/docker/scripts/test/.env bash ./docker/scripts/get-certificates.sh --test
Output example:
Output example:
eval certbot certonly --webroot --agree-tos --no-eff-email --email admin@test.com -w /home/konstantin/Project/lib/docker-server/nginx/web -d foo.com -d t.foo.com
eval certbot certonly --webroot --agree-tos --no-eff-email --email admin@test.com -w /home/konstantin/Project/lib/docker-server/nginx/web -d baz.com -d admin.baz.com -d bar.com