-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
108 lines (105 loc) · 3.54 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
101
102
103
104
105
106
107
108
version: "3.4"
services:
app:
build:
context: .
dockerfile: ./.docker/development/Dockerfile
args:
RUBY_VERSION: "2.7.2"
BUNDLER_VERSION_OVERRIDE: "2.2.14"
NODE_MAJOR: "12"
YARN_VERSION: "1.22.4"
image: medicaid_gateway_dev:0.3.0
ports:
- "3000:3000"
volumes:
- .:/medicaid_gateway:cached
- rails_cache:/medicaid_gateway/tmp/cache
- bundle:/bundle
- node_modules:/medicaid_gateway/node_modules
- packs:/medicaid_gateway/public/packs
environment:
- ACTION_MAILER_HOST=${ACTION_MAILER_HOST:-localhost}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-AKIA123456789}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-AbcD987654321}
- AWS_REGION=${AWS_REGION:-us-east-1}
- AWS_S3_ROOT_NAMESPACE=${AWS_S3_ROOT_NAMESPACE:-root_bucket}
- AWS_BUCKET_ROOT_NAMESPACE=${AWS_BUCKET_ROOT_NAMESPACE:-root_bucket}
- AWS_CONNECT_INSTANCE_ID=${AWS_CONNECT_INSTANCE_ID:-123456789}
- AWS_CONNECT_INSTANCE_URL=${AWS_CONNECT_INSTANCE_URL:-http://localhost}
- BLIND_INDEX_MASTER_KEY=ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
- DB_DATABASE=dcas_journal_development
- DB_HOST=db
- DB_PORT=27017
- DB_USERNAME=postgres
- DB_PASSWORD=postgres_local
- FIN_SVC_PRIVATE_KEY=""
- FIN_SVC_API_SECRET=""
- INTERFACE="0.0.0.0"
- MITC_HOST=${MITC_HOST:-http://mitc}
- MITC_PORT=${MITC_PORT:-3001}
- MITC_URL=${MITC_URL:-http://mitc:3001}
- QB_CLIENT_ID=${QB_CLIENT_ID:-1234567890}
- QB_CLIENT_SECRET=${QB_CLIENT_SECRET:-1234567890}
- QB_REALM_ID=${QB_REALM_ID:-1234567890}
- RABBITMQ_HOST=${RABBITMQ_HOST:-amqp://rabbitmq}
- RABBITMQ_VHOST=${RABBITMQ_VHOST:-event_source}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD:-guest}
- RABBITMQ_PORT=${RABBITMQ_PORT:-5672}
- RABBITMQ_URL_EVENT_SOURCE=${RABBITMQ_URL_EVENT_SOURCE:-amqp://guest:guest@rabbitmq:5672}
- RABBITMQ_USERNAME=${AMQP_USERNAME:-guest}
- RAILS_ENV=${RAILS_ENV:-development}
- SFTP_HOST=""
- SFTP_PORT=""
- SMTP_DOMAIN=${SMTP_DOMAIN:-ideacrew.com}
- SMTP_HOST=${SMTP_HOST:-localhost}
- SMTP_PASSWORD=${SMTP_PASSWORD:-password}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USERNAME=${SMTP_USERNAME:-username}
- SNS_HOST=""
- SNS_PORT=""
- WF_BILLER_KEY=${WF_API_KEY:-1234567890}
- WF_API_SECRET=${WF_API_KEY:-1234567890}
- WF_PRIVATE_KEY=${WF_API_KEY:-1234567890}
tmpfs:
- /tmp
command: bash -c "rm -f tmp/pids/server.pid && mkdir -p tmp/pids && yarn install --check-files && bundle install && bundle exec puma -C config/puma.rb"
depends_on:
- mongodb
- rabbitmq
- mitc
mongodb:
image: mongo:4.2
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
ports:
- 27017:27017
rabbitmq:
image: rabbitmq:3.8-management
container_name: rabbitmq
volumes:
- rabbitmq_etc:/etc/rabbitmq/
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_logs:/var/log/rabbitmq/
- ./.docker/rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
- ./.docker/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
ports:
- 5672:5672
- 15672:15672
mitc:
image: mitc:02.2021
container_name: mitc
ports:
- 3002:3001
command: bin/rails server --port 3001 --binding 0.0.0.0
volumes:
bundle:
rails_cache:
node_modules:
packs:
mongodb:
mongodb_config:
rabbitmq_etc:
rabbitmq_data:
rabbitmq_logs: