forked from department-of-veterans-affairs/vets-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
40 lines (40 loc) · 1.78 KB
/
docker-compose.test.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
version: '3.4'
services:
postgres:
image: mdillon/postgis:11-alpine
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}"
vets-api:
build:
context: .
target: development
args:
sidekiq_license: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
userid: "${VETS_API_USER_ID}"
image: "vets-api:${DOCKER_IMAGE:-latest}"
volumes:
- ".:/srv/vets-api/src"
- test_bundle:/usr/local/bundle
environment:
"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.binaries.clamdscan": "clamscan" # Not running a separate process within the container for clamdscan, so we use clamscan which requires no daemon
POSTGRES_HOST: "${POSTGRES_HOST:-postgres}"
POSTGRES_PORT: "${POSTGRES_PORT:-5432}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
CI: "true"
RAILS_ENV: test
CC_TEST_REPORTER_ID: '0c396adc254b0317e2c3a89a1c929fd61270b133c944d3e9c0f13b3937a7ce45'
CHANGE_ID: "${CHANGE_ID}"
GIT_URL: "${GIT_URL}"
JENKINS_URL: "${JENKINS_URL}"
DANGER_GITHUB_API_TOKEN: "${DANGER_GITHUB_API_TOKEN}"
depends_on:
- postgres
links:
- postgres
volumes:
test_bundle: