Skip to content

Commit

Permalink
chore(prod): re-enable node 2 [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 17, 2024
1 parent b4a3066 commit e25aba9
Show file tree
Hide file tree
Showing 4 changed files with 1,633 additions and 69 deletions.
114 changes: 57 additions & 57 deletions epivar-prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
- EPIVAR_LOW_COUNT_THRESHOLD=5
volumes:
# user information
- /etc/passwd:/etc/passwd:ro
# - /etc/passwd:/etc/passwd:ro
# dataset configuration: about Markdown file, EpiVar config.js
- ./node1/about.md:/app/data/about.md
- ./node1/config.js:/app/config.js:ro
Expand Down Expand Up @@ -81,62 +81,62 @@ services:

# Node 2: hg38 data (lifted over) ------------------------------------------------------------------------------------

# epivar-node-2-server:
# # user: $USER:$USER
# image: ghcr.io/c3g/epivar-server:latest
# networks:
# - epivar-node-2-server-net
# - epivar-node-2-redis-net
# - epivar-node-2-db-net
# depends_on:
# - epivar-node-2-redis
# - epivar-node-2-db
# env_file:
# - ./node2/secrets.env
# environment:
# - NODE_ENV=production
# - EPIVAR_NODE_BASE_URL=https://flu-infection.vhost38.genap.ca/aracena-hg38
# - EPIVAR_REDIS_CONNECTION=redis://epivar-node-2-redis:6379
# - EPIVAR_IMPORT_MAX_P_VAL=0.05
# - EPIVAR_LOW_COUNT_THRESHOLD=5
# volumes:
# # user information
# - /etc/passwd:/etc/passwd:ro
# # dataset configuration: about Markdown file, EpiVar config.js, tracks metadata.json
# - ./node2/about.md:/app/data/about.md
# - ./node2/config.js:/app/config.js:ro
# # genotypes: VCF + index file
# - /flu-infection-data/node2/allSamples.hc.vqsr.mil.snpId.snpeff.dbnsfp.GRCh38.vcf.gz:/app/data/genotypes.vcf.gz:ro
# - /flu-infection-data/node2/allSamples.hc.vqsr.mil.snpId.snpeff.dbnsfp.GRCh38.vcf.gz.tbi:/app/data/genotypes.vcf.gz.tbi:ro
# # peaks files
# - /flu-infection-data/node2/matrices:/app/input-files/matrices:ro
# - /flu-infection-data/node2/qtls:/app/input-files/qtls:ro
# # tracks:
# # - metadata JSON file,
# - node1/metadata.json:/app/data/metadata.json:ro
# # - sample bigWigs,
# - /flu-infection-data/node1/tracks:/tracks:ro
# # - writeable volume for on-the-fly merged tracks,
# - /flu-infection-data/node1/mergedTracks:/mergedTracks
# # - other static tracks for showing in the UCSC browser.
# # *** NONE FOR NODE 2 ***
#
# epivar-node-2-redis:
# image: redis:7.2
# networks:
# - epivar-node-2-redis-net
# volumes:
# - node2/volumes/redis:/data
#
# epivar-node-2-db:
# image: postgres:16
# networks:
# - epivar-node-2-db-net
# env_file:
# - ./node2/secrets.env
# volumes:
# - ./node2/postgresql.conf:/etc/postgresql/postgresql.conf:ro
# - ./node2/volumes/db:/var/lib/postgresql/data
epivar-node-2-server:
# user: $USER:$USER
image: ghcr.io/c3g/epivar-server:latest
networks:
- epivar-node-2-server-net
- epivar-node-2-redis-net
- epivar-node-2-db-net
depends_on:
- epivar-node-2-redis
- epivar-node-2-db
env_file:
- ./node2/secrets.env
environment:
- NODE_ENV=production
- EPIVAR_NODE_BASE_URL=https://flu-infection.vhost38.genap.ca/aracena-hg38
- EPIVAR_REDIS_CONNECTION=redis://epivar-node-2-redis:6379
- EPIVAR_IMPORT_MAX_P_VAL=0.05
- EPIVAR_LOW_COUNT_THRESHOLD=5
volumes:
# user information
# - /etc/passwd:/etc/passwd:ro
# dataset configuration: about Markdown file, EpiVar config.js, tracks metadata.json
- ./node2/about.md:/app/data/about.md
- ./node2/config.js:/app/config.js:ro
# genotypes: VCF + index file
- /flu-infection-data/node2/allSamples.hc.vqsr.mil.snpId.snpeff.dbnsfp.GRCh38.vcf.gz:/app/data/genotypes.vcf.gz:ro
- /flu-infection-data/node2/allSamples.hc.vqsr.mil.snpId.snpeff.dbnsfp.GRCh38.vcf.gz.tbi:/app/data/genotypes.vcf.gz.tbi:ro
# peaks files
- /flu-infection-data/node2/matrices:/app/input-files/matrices:ro
- /flu-infection-data/node2/qtls:/app/input-files/qtls:ro
# tracks:
# - metadata JSON file,
- node2/metadata.json:/app/data/metadata.json:ro
# - sample bigWigs,
- /flu-infection-data/node2/tracks:/tracks:ro
# - writeable volume for on-the-fly merged tracks,
- /flu-infection-data/node2/mergedTracks:/mergedTracks
# - other static tracks for showing in the UCSC browser.
# *** NONE FOR NODE 2 ***

epivar-node-2-redis:
image: redis:7.2
networks:
- epivar-node-2-redis-net
volumes:
- node2/volumes/redis:/data

epivar-node-2-db:
image: postgres:16
networks:
- epivar-node-2-db-net
env_file:
- ./node2/secrets.env
volumes:
- ./node2/postgresql.conf:/etc/postgresql/postgresql.conf:ro
- ./node2/volumes/db:/var/lib/postgresql/data

# --------------------------------------------------------------------------------------------------------------------

Expand Down
24 changes: 13 additions & 11 deletions epivar-prod/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,18 @@ http {
proxy_pass http://epivar-node-1-server:3002$uri;
}

# location /aracena-hg38/api/ {
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Legacy, replaced by Forwarded
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Host $http_host;
# proxy_set_header Forwarded "$proxy_add_forwarded;proto=$scheme";
#
# rewrite ^ $request_uri;
# rewrite ^/aracena-hg38/(.*) /$1 break;
# return 400;
# proxy_pass http://epivar-node-2-server:3002$uri;
# }
location /aracena-hg38/api/ {
resolver 127.0.0.11 valid=60s;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Legacy, replaced by Forwarded
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header Forwarded "$proxy_add_forwarded;proto=$scheme";

rewrite ^ $request_uri;
rewrite ^/aracena-hg38/(.*) /$1 break;
return 400;
proxy_pass http://epivar-node-2-server:3002$uri;
}
}
}
2 changes: 1 addition & 1 deletion epivar-prod/node2/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// noinspection JSUnusedGlobalSymbols
module.exports = {
title: "Aracena 𝘦𝘵 𝘢𝘭. lift-over",
title: "Aracena 𝘦𝘵 𝘢𝘭. RNA-seq liftover",
assembly: "hg38",

conditions: [
Expand Down
Loading

0 comments on commit e25aba9

Please sign in to comment.