HELLO WORK
Usage:
Specify domain in file ./DOMAIN
Include apps folder into nginx.conf
include /usr/docker-deployment/apps/**/*.conf
Create network
docker network create hello-work
Start or restart application:
./app-update.sh VIRUAL_HOST_NAME IMAGE_NAME PORT_INSIDE_CONTAINER? NGINX_CONFIG_TEMPLATE_PATH?
Stop application:
./app-update.sh VIRUAL_HOST_NAME
Set aplication environment variables (will be used on next update):
./app-env-set.sh VIRUAL_HOST_NAME VAR1=VAL1 VAR2=VAL2
Testing:
- Build test image
./test/build.sh
- Start test application on subdomain hello-world.domain.com
./app-update.sh hello-world hello-world:latest
- Make request:
curl hello-world.domain.com/CHECK
- Stop test application on subdomain hello-world.domain.com
./app-stop.sh hello-world