-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.review.yml
70 lines (67 loc) · 2.26 KB
/
docker-compose.review.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
version: '3.4'
x-app: &common
build:
args:
BUNDLE_ENTERPRISE__CONTRIBSYS__COM: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
USER_ID: ${VETS_API_USER_ID}
context: .
environment:
RAILS_ENV: development
BUNDLE_ENTERPRISE__CONTRIBSYS__COM: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
SETTINGS__DATABASE_URL: "postgis://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DATABASE:-vets_api_development}?pool=4"
SETTINGS__TEST_DATABASE_URL: "postgis://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DATABASE:-vets_api_test}"
SETTINGS__REDIS__APP_DATA__URL: "redis://redis:6379"
SETTINGS__REDIS__SIDEKIQ__URL: "redis://redis:6379"
SETTINGS__REDIS__RAILS_CACHE__URL: "redis://redis:6379"
SETTINGS__SAML_SSOE__IDP_METADATA_FILE: "config/ssoe_idp_sqa_metadata_isam.xml"
SETTINGS__BETAMOCKS__CACHE_DIR: "config/vets-api-mockdata"
image: vets-api:${DOCKER_IMAGE:-latest}
restart: unless-stopped
volumes:
- "../vets-api-mockdata:/cache"
- ../.secret:/srv/vets-api/secret:cached
- ../.pki:/srv/vets-api/pki:cached
- shared-vol:/tmp
working_dir: /app
depends_on:
- clamav
- postgres
- redis
links:
- clamav
- postgres
- redis
services:
clamav:
image: clamav/clamav
restart: unless-stopped
ports:
- 3310:3310
volumes:
- shared-vol:/vets-api
redis:
image: redis:6.2-alpine
restart: unless-stopped
ports:
- 6379:6379
postgres:
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c max_connections=200
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
PGDATA: /tmp
image: postgis/postgis:14-3.3-alpine
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data:cached
web:
<<: *common
command: bash -c "bundle exec rake db:migrate || bundle exec rake db:reset db:migrate && bundle exec rails s -b 0.0.0.0"
ports:
- 3000:3000
worker:
<<: *common
command: bundle exec sidekiq -q critical,4 -q tasker,3 -q default,2 -q low,1
volumes:
shared-vol: