Skip to content

Commit

Permalink
add dockerfile and scripts for deployment on scec.org production server
Browse files Browse the repository at this point in the history
  • Loading branch information
levin422 committed Jan 28, 2022
1 parent 5498f36 commit 1ae4bfc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose-resource-limits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '2.2'

services:

db:
mem_limit: 5g
cpus: 3

web:
mem_limit: 5g
cpus: 3
3 changes: 3 additions & 0 deletions prodbuild.sh
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions prodstart.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1ae4bfc

Please sign in to comment.