diff --git a/docker-compose-resource-limits.yml b/docker-compose-resource-limits.yml new file mode 100644 index 00000000..01e4df27 --- /dev/null +++ b/docker-compose-resource-limits.yml @@ -0,0 +1,11 @@ +version: '2.2' + +services: + + db: + mem_limit: 5g + cpus: 3 + + web: + mem_limit: 5g + cpus: 3 diff --git a/docker-compose.yml b/docker-compose.yml index 8cd58e3a..6cc14f8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ # Use postgres/example user/password credentials -version: '3.1' +version: '2.2' services: diff --git a/prodbuild.sh b/prodbuild.sh new file mode 100755 index 00000000..53a23300 --- /dev/null +++ b/prodbuild.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# Script to build production CFM on SCEC.org server +docker-compose -f docker-compose.yml -f docker-compose-resource-limits.yml up --build --force -d diff --git a/prodstart.sh b/prodstart.sh new file mode 100755 index 00000000..d73b15fb --- /dev/null +++ b/prodstart.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# Script to start production CFM on SCEC.org server +docker-compose -f docker-compose.yml -f docker-compose-resource-limits.yml up -d