Skip to content

Instantly share code, notes, and snippets.

@dmohs
Last active November 2, 2016 21:06
Show Gist options
  • Save dmohs/d2f8d6331af4d58ecf19c46ba3581894 to your computer and use it in GitHub Desktop.
Save dmohs/d2f8d6331af4d58ecf19c46ba3581894 to your computer and use it in GitHub Desktop.
version: '2'
services:
app:
image: hseeberger/scala-sbt
stdin_open: true
tty: true
ports:
- "5051:5051"
working_dir: /w
volumes:
- jars:/root/.ivy2
- working:/w
environment:
- GOOGLE_CLIENT_ID=redacted
- AGORA_URL_ROOT=https://agora.dsde-dev.broadinstitute.org
- RAWLS_URL_ROOT=https://rawls.dsde-dev.broadinstitute.org
- THURLOE_URL_ROOT=https://thurloe.dsde-dev.broadinstitute.org
- FIRECLOUD_URL_ROOT=https://local.broadinstitute.org:10443
- ORCHESTRATION_PEM=/etc/firecloud-account.pem
- ORCHESTRATION_PEM_CLIENT_ID=redacted
- RAWLS_PEM=/etc/rawls-account.pem
- RAWLS_PEM_CLIENT_ID=redacted
- NIH_WHITELIST_BUCKET=firecloud-whitelist-dev
- SWAGGER_REALM=broad-dsde-dev
- ACTIVATION_TEMPLATE_ID=redacted
- FIRE_CLOUD_ID=redacted
- ELASTICSEARCH_URLS=elasticsearch1.dsde-dev.broadinstitute.org:9300,elasticsearch2.dsde-dev.broadinstitute.org:9300,elasticsearch3.dsde-dev.broadinstitute.org:9300
- ELASTICSEARCH_INDEX=librarylocal
env_file:
- ./GOOGLE_SECRET_JSON.env
- ./JWT_SIGNING_KEY.env
extra_hosts:
- elasticsearch1.dsde-dev.broadinstitute.org:10.255.8.20
- elasticsearch2.dsde-dev.broadinstitute.org:10.255.8.29
- elasticsearch3.dsde-dev.broadinstitute.org:10.255.8.30
- rawls.dsde-dev.broadinstitute.org:10.255.8.10
- thurloe.dsde-dev.broadinstitute.org:10.255.8.15
rsync:
image: tjamet/rsync
working_dir: /w
volumes:
- working:/w
environment:
- DAEMON=docker
proxy:
extends:
file: proxy-compose.yaml
service: proxy
links:
- app:app
environment:
PROXY_URL: http://app:8080/
PROXY_URL2: http://app:8080/api
volumes:
certs:
site-conf:
jars:
external: true
working:
+ /.rsync-filter
+ /build.sbt
+ /project/
+ /project/plugins.sbt
+ /src/
+ /src/*
+ /src/**
- *
build.sbt project/** src/** {
prep: rsync --blocking-io -avzF --delete -e 'docker exec -i' . orch_rsync_1:/w
}
config/firecloud-account.pem {
prep: docker cp config/firecloud-account.pem orch_app_1:/etc
}
config/rawls-account.pem {
prep: docker cp config/rawls-account.pem orch_app_1:/etc
}
version: '2'
services:
ui:
image: clojure
working_dir: /w
command: bash
stdin_open: true
tty: true
ports:
- 80:3449
- 3449:3449
volumes:
- jars:/root/.m2
- working:/w
# environment:
# - LEIN_ROOT=1
rsync:
image: tjamet/rsync
working_dir: /w
volumes:
- working:/w
environment:
- DAEMON=docker
volumes:
working:
jars:
external: true
+ /.rsync-filter
+ /project.clj
+ /src/
+ /src/*
+ /src/**
- *
project.clj src/** {
prep: rsync --blocking-io -avzF --delete -e 'docker exec -i' . ui_rsync_1:/w
}
config/config.json {
prep: docker cp config/config.json ui_ui_1:/w/target
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment