Skip to content

Commit

Permalink
restucture
Browse files Browse the repository at this point in the history
  • Loading branch information
marriott-er committed Oct 1, 2018
1 parent 46ac3b5 commit f9f80ae
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 20 deletions.
36 changes: 18 additions & 18 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ services:
nginx-wrapper:
image: cbioportal-cloud-nginx-wrapper:latest
build:
context: ./nginx-wrapper
context: services/nginx-wrapper
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: ./nginx-wrapper/nginx.conf
source: ./services/nginx-wrapper/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
- type: bind
source: ./nginx-wrapper/cert.crt
source: ./services/nginx-wrapper/cert.crt
target: /etc/nginx/cert.crt
read_only: true
- type: bind
source: ./nginx-wrapper/cert.key
source: ./services/nginx-wrapper/cert.key
target: /etc/nginx/cert.key
read_only: true
depends_on:
Expand All @@ -29,7 +29,7 @@ services:
cbioportal:
image: cbioportal-cloud:latest
build:
context: ./cbioportal
context: services/cbioportal
args:
BRANCH: master
DB_HOST: cbioportal-mysql
Expand All @@ -40,11 +40,11 @@ services:
restart: always
volumes:
- type: bind
source: ./host
source: ./mountpoints/host
target: /host
read_only: false
- type: bind
source: ./cbioportal/context.xml
source: ./services/cbioportal/context.xml
target: /usr/local/tomcat/cont/context.xml
read_only: true
depends_on:
Expand All @@ -63,22 +63,22 @@ services:
cbioportal-mysql:
image: cbioportal-cloud-cbioportal-mysql:latest
build:
context: ./cbioportal-mysql
context: services/cbioportal-mysql
environment:
MYSQL_ROOT_PASSWORD: *mysql_root_password
MYSQL_DATABASE: *mysql_database
restart: always
volumes:
- type: bind
source: ./host
source: ./mountpoints/host
target: /host
read_only: false
- type: bind
source: ./cbioportal-mysql/custom.cnf
source: ./services/cbioportal-mysql/custom.cnf
target: /etc/mysql/conf.d/custom.cnf
read_only: true
- type: bind
source: ./cbioportal-mysql/mysql-data
source: ./mountpoints/cbioportal-mysql-data
target: /var/lib/mysql
read_only: false
networks:
Expand All @@ -87,7 +87,7 @@ services:
oncokb:
image: cbioportal-cloud-oncokb:latest
build:
context: ./oncokb
context: services/oncokb
args:
BRANCH: &oncokb_branch v0.3.1
DB_HOST: oncokb-mysql
Expand All @@ -105,7 +105,7 @@ services:
oncokb-mysql:
image: cbioportal-cloud-oncokb-mysql:latest
build:
context: oncokb-mysql
context: services/oncokb-mysql
args:
BRANCH: *oncokb_branch
environment:
Expand All @@ -117,7 +117,7 @@ services:
genome-nexus:
image: cbioportal-cloud-genome-nexus:latest
build:
context: ./genome-nexus
context: services/genome-nexus
args:
BRANCH: master
environment:
Expand All @@ -135,7 +135,7 @@ services:
genome-nexus-mongodb:
image: cbioportal-cloud-genome-nexus-mongodb:latest
build:
context: ./genome-nexus-mongodb
context: services/genome-nexus-mongodb
args:
BRANCH: v0.4
restart: always
Expand All @@ -144,7 +144,7 @@ services:
session-service:
image: cbioportal-cloud-session-service:latest
build:
context: ./session-service
context: services/session-service
args:
BRANCH: master
environment:
Expand All @@ -162,14 +162,14 @@ services:
session-service-mongodb:
image: cbioportal-cloud-session-service-mongodb:latest
build:
context: ./session-service-mongodb
context: services/session-service-mongodb
restart: always
networks:
- cbio-bridge
cancerhotspots:
image: cbioportal-cloud-cancerhotspots:latest
build:
context: ./cancerhotspots
context: services/cancerhotspots
args:
BRANCH: master
restart: always
Expand Down
2 changes: 0 additions & 2 deletions generate_self_signed_keys_for_nginx.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions scripts/generate_self_signed_keys_for_nginx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
MAIN_PATH=$(dirname $(dirname $(readlink -f "$0")))
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout ${MAIN_PATH}/services/nginx-wrapper/cert.key \
-out ${MAIN_PATH}/services/nginx-wrapper/cert.crt
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f9f80ae

Please sign in to comment.