-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
100 lines (99 loc) · 2.74 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
services:
queue:
image: postgres:15
environment:
- POSTGRES_DB=bcda_queue
- POSTGRES_PASSWORD=toor
ports:
- "5433:5432"
db:
image: postgres:15
environment:
- POSTGRES_DB=bcda
- POSTGRES_PASSWORD=toor
ports:
- "5432:5432"
volumes:
- ./db:/var/db
api:
build:
context: .
dockerfile: Dockerfiles/Dockerfile.bcda_prod
args:
ENVIRONMENT: development
entrypoint: ""
command: ["../scripts/watch.sh", "api", "bcda", "start-api"]
env_file:
- ./shared_files/decrypted/local.env
environment:
- CI=${CI} # Used to determine if the API is running on a CI process
volumes:
- .:/go/src/github.com/CMSgov/bcda-app
ports:
- "3000:3000"
- "3001:3001"
depends_on:
- ssas
- db
- queue
worker:
build:
context: .
dockerfile: Dockerfiles/Dockerfile.bcdaworker_prod
args:
ENVIRONMENT: development
entrypoint: ""
command: ["../scripts/watch.sh", "worker", "bcdaworker"]
env_file:
- ./shared_files/decrypted/local.env
environment:
- CI=${CI} # Used to determine if the API is running on a CI process
volumes:
- .:/go/src/github.com/CMSgov/bcda-app
depends_on:
- db
- queue
ssas:
build:
context: .
dockerfile: Dockerfiles/Dockerfile.ssas
environment:
- DATABASE_URL=postgresql://postgres:toor@db:5432/bcda?sslmode=disable
- DEPLOYMENT_TARGET=local
- JWT_PUBLIC_KEY_FILE=/var/local/public.pem
- JWT_PRIVATE_KEY_FILE=/var/local/private.pem
- DEBUG=true
- HTTP_ONLY=true
- BCDA_SSAS_CLIENT_ID=${BCDA_SSAS_CLIENT_ID}
- BCDA_SSAS_SECRET=${BCDA_SSAS_SECRET}
- ENABLE_ALR_ENDPOINTS=false
- SSAS_ADMIN_SIGNING_KEY_PATH=../shared_files/ssas/admin_test_signing_key.pem
- SSAS_PUBLIC_SIGNING_KEY_PATH=../shared_files/ssas/public_test_signing_key.pem
- SSAS_ADMIN_PORT=:3004
- SSAS_PUBLIC_PORT=:3003
- SSAS_HTTP_TO_HTTPS_PORT=:3005
- SSAS_READ_TIMEOUT=10
- SSAS_WRITE_TIMEOUT=20
- SSAS_IDLE_TIMEOUT=120
- SSAS_HASH_ITERATIONS=130000
- SSAS_HASH_KEY_LENGTH=64
- SSAS_HASH_SALT_SIZE=32
- SSAS_DEFAULT_SYSTEM_SCOPE=bcda-api
- SSAS_MFA_CHALLENGE_REQUEST_MILLISECONDS=0
- SSAS_MFA_TOKEN_TIMEOUT_MINUTES=60
- SSAS_MFA_PROVIDER=${SSAS_MFA_PROVIDER}
- SSAS_TOKEN_BLACKLIST_CACHE_CLEANUP_MINUTES=15
- SSAS_TOKEN_BLACKLIST_CACHE_TIMEOUT_MINUTES=1440
- SSAS_TOKEN_BLACKLIST_CACHE_REFRESH_MINUTES=5
volumes:
- .:/go/src/github.com/CMSgov/bcda-app
ports:
- "3003:3003"
- "3004:3004"
- "3005:3005"
depends_on:
- db
networks:
default:
name: bcda-app-net