#!/bin/bash

# global proxy up
yarn docker-nginx-global-proxy-up

# rebuild image with --no-cache flag if production
if [ $NODE_ENV == production ]; then
  docker-compose $DOCKER_CONFIG build --no-cache
fi

# docker compose
docker-compose $DOCKER_CONFIG up $ARGS
