forked from department-of-veterans-affairs/vets-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.89 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
version: '3.4'
services:
redis:
image: redis:5.0-alpine
ports:
- "63790:6379"
postgres:
image: mdillon/postgis:11-alpine
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
volumes:
- ./data:/var/lib/postgresql/data:cached
ports:
- "54320:5432"
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:cached
- "../vets-api-mockdata:/cache"
- dev_bundle:/usr/local/bundle
ports:
- "3000:3000"
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}?pool=4"
"Settings.saml.cert_path": "/srv/vets-api/src/config/certs/vetsgov-localhost.crt"
"Settings.saml.key_path": "/srv/vets-api/src/config/certs/vetsgov-localhost.key"
"Settings.redis.app_data.url": "redis://redis:6379"
"Settings.redis.sidekiq.url": "redis://redis:6379"
"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}"
depends_on:
- postgres
- redis
links:
- postgres
- redis
volumes:
db-data:
dev_bundle: