Skip to content

Commit

Permalink
adding production with networking
Browse files Browse the repository at this point in the history
  • Loading branch information
mwang87 committed Jul 23, 2019
1 parent 9b0437d commit 310f1a3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
10 changes: 10 additions & 0 deletions code/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ bash:

attach:
docker exec -i -t gnpsmetadata /bin/bash


#Docker Compose
server-compose-interactive:
docker-compose build
docker-compose up

server-compose-production:
docker-compose build
docker-compose -f docker-compose.yml -f docker-compose-production.yml up -d
19 changes: 19 additions & 0 deletions code/docker-compose-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3'

services:
redu-ms2-web:
networks:
- default
- nginx-net
environment:
VIRTUAL_HOST: redu.ucsd.edu
#VIRTUAL_HOST: mingwangbeta.ucsd.edu
VIRTUAL_PORT: 5005
LETSENCRYPT_HOST: redu.ucsd.edu
#LETSENCRYPT_HOST: mingwangbeta.ucsd.edu
LETSENCRYPT_EMAIL: [email protected]

networks:
nginx-net:
external:
name: nginx-net
3 changes: 0 additions & 3 deletions code/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ services:
- ../database/:/app/database
- ../temp/:/app/temp
command: /app/run_production_server.sh
environment:
- VIRTUAL_HOST=redu.ucsd.edu
- VIRTUAL_PORT=5005

redu-ms2-populate:
build: .
Expand Down

0 comments on commit 310f1a3

Please sign in to comment.