compose the basics

This commit is contained in:
nora 2022-09-03 21:03:33 +02:00
parent 99d5edbb94
commit c97168fe00
4 changed files with 62 additions and 3 deletions

15
docker/compose.sh Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ "$STAGE" = "prod" ] ;
then
export NGINX_CONF_PATH=../nginx/nginx.conf
EXTRA_ARGS="-f $SCRIPT_DIR/production.yml"
else
export NGINX_CONF_PATH=../nginx/nginx.local.conf
fi
export REGISTRY_CONF_DIR=../registry
docker compose -f "$SCRIPT_DIR/docker-compose.yml" $@ up -d