mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-15 00:55:09 +01:00
compose the basics
This commit is contained in:
parent
99d5edbb94
commit
c97168fe00
4 changed files with 62 additions and 3 deletions
15
docker/compose.sh
Executable file
15
docker/compose.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue