-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
54 lines (53 loc) · 1.64 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This is an example compose file that can be used for local development.
# Modify the config file in `volumes` to point to the desired environment, default id dev.
# Ensure that the following configuration files have been created in the correct locations:
# * public/config.json
# * ca-bundle.crt
# * server.crt
# * server.key
# * site.conf
# Ensure that /etc/hosts contains an entry for:
# 127.0.0.1 local.broadinstitute.org
# Ensure that `public/config.json` is pointing to the correct env (not local), i.e.:
# ... "env": "dev", ...
# Build:
# docker build . -t duos
# Run:
# docker compose up -d
# Test
# https://local.broadinstitute.org/
version: '3.8'
services:
app:
image: duos:latest
container_name: duos
ports:
- 8080:8080
volumes:
- ./public/config.json:/usr/share/nginx/html/config.json
command: ["nginx", "-g", "daemon off;"]
restart: always
proxy:
image: us.gcr.io/broad-dsp-gcr-public/httpd-terra-proxy:v0.1.16
container_name: duos-proxy
hostname: local.dsde-dev.broadinstitute.org
links:
- app:app
ports:
- 80:8080
- 443:443
volumes:
- ./ca-bundle.crt:/etc/ssl/certs/server-ca-bundle.crt:ro
- ./server.crt:/etc/ssl/certs/server.crt:ro
- ./server.key:/etc/ssl/private/server.key:ro
- ./site.conf:/etc/httpd/conf.d/site.conf:ro
environment:
AUTH_TYPE: AuthType None
LOG_LEVEL: warn
OIDC_CLAIM: Require all granted
PROXY_PATH: /
PROXY_URL: http://app:8080/
SERVER_NAME: local.dsde-dev.broadinstitute.org
SERVER_NAME_INT: local.dsde-dev.broadinstitute.org
ENABLE_TCELL: 'no'
restart: always