forked from CMSgov/bluebutton-web-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (67 loc) · 2.94 KB
/
docker-compose.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
msls:
build:
context: ./dev-local/msls
dockerfile: Dockerfile
command: msls
ports:
- "8080:8080"
db:
image: postgres
environment:
- POSTGRES_DB=bluebutton
- POSTGRES_PASSWORD=toor
ports:
- "5432:5432"
web:
build: .
command: ./docker-compose/bluebutton_server_start.sh '${DB_MIGRATIONS}' '${SUPER_USER_NAME}' '${SUPER_USER_EMAIL}' '${SUPER_USER_PASSWORD}' '${BB20_ENABLE_REMOTE_DEBUG}' '${BB20_REMOTE_DEBUG_WAIT_ATTACH}'
environment:
- DJANGO_SETTINGS_MODULE=hhs_oauth_server.settings.dev
- DATABASES_CUSTOM=postgres://postgres:toor@db:5432/bluebutton
- OAUTHLIB_INSECURE_TRANSPORT=true
- DJANGO_DEFAULT_SAMPLE_FHIR_ID="-20140000008325"
- DJANGO_SECURE_SESSION=False
- FHIR_URL="https://prod-sbx.bfd.cms.gov"
- DJANGO_FHIR_CERTSTORE=/code/docker-compose/certstore/
# Commented out settings for MSLS:
# - DJANGO_MEDICARE_SLSX_REDIRECT_URI=http://localhost:8000/mymedicare/sls-callback
# - DJANGO_MEDICARE_SLSX_LOGIN_URI=http://127.0.0.1:8080/sso/authorize?client_id=bb2api
# - DJANGO_SLSX_HEALTH_CHECK_ENDPOINT=http://msls:8080/health
# - DJANGO_SLSX_TOKEN_ENDPOINT=http://msls:8080/sso/session
# - DJANGO_SLSX_SIGNOUT_ENDPOINT=http://msls:8080/sso/signout
# - DJANGO_SLSX_USERINFO_ENDPOINT=http://msls:8080/v1/users
- DJANGO_SLSX_CLIENT_ID=bb2api
- DJANGO_SLSX_CLIENT_SECRET=${DJANGO_SLSX_CLIENT_SECRET}
- DJANGO_MEDICARE_SLSX_REDIRECT_URI=http://localhost:8000/mymedicare/sls-callback
- DJANGO_MEDICARE_SLSX_LOGIN_URI=https://test.medicare.gov/sso/authorize?client_id=bb2api
- DJANGO_SLSX_HEALTH_CHECK_ENDPOINT=https://test.accounts.cms.gov/health
- DJANGO_SLSX_TOKEN_ENDPOINT=https://test.medicare.gov/sso/session
- DJANGO_SLSX_SIGNOUT_ENDPOINT=https://test.medicare.gov/sso/signout
- DJANGO_SLSX_USERINFO_ENDPOINT=https://test.accounts.cms.gov/v1/users
# SSL verify for internal endpoints can't currently use SSL verification (this may change in the future)
- DJANGO_SLSX_VERIFY_SSL_INTERNAL=False
- DJANGO_SLSX_VERIFY_SSL_EXTERNAL=True
- DJANGO_LOG_JSON_FORMAT_PRETTY=True
volumes:
- .:/code
ports:
- "8000:8000"
- "5678:5678"
depends_on:
- db
- msls
unittests:
build: .
command: python3 -m debugpy --listen 0.0.0.0:6789 --wait-for-client runtests.py
environment:
- DJANGO_SETTINGS_MODULE=hhs_oauth_server.settings.dev
- DATABASES_CUSTOM=postgres://postgres:toor@db:5432/bluebutton
- OAUTHLIB_INSECURE_TRANSPORT=true
- DJANGO_DEFAULT_SAMPLE_FHIR_ID="-20140000008325"
- DJANGO_SECURE_SESSION=False
ports:
- "6789:6789"
volumes:
- .:/code