Skip to content

Commit

Permalink
Merge pull request #12 from SCECcode/prod-scripts
Browse files Browse the repository at this point in the history
add dockerfile and scripts for deployment on scec.org production server
  • Loading branch information
meihuisu authored Jan 29, 2022
2 parents d6d1fb3 + aafddf5 commit e556e68
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use postgres/example user/password credentials
version: '3.1'
version: '2.2'

services:

Expand Down
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 e556e68

Please sign in to comment.