-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.test.yml
45 lines (45 loc) · 1.8 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
41
42
43
44
45
version: '3.4'
services:
redis:
image: public.ecr.aws/docker/library/redis:6.2-alpine
postgres:
image: postgis/postgis:14-3.3-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}"
web:
build:
context: .
target: development
args:
sidekiq_license: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
userid: "${VETS_API_USER_ID}"
image: "vets-api:${DOCKER_IMAGE:-latest}"
volumes:
- ".:/app"
- 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__REDIS__APP_DATA__URL: "redis://redis:6379"
SETTINGS__REDIS__SIDEKIQ__URL: "redis://redis:6379"
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
- redis
links:
- postgres
- redis
volumes:
test_bundle: