forked from department-of-veterans-affairs/vets-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.79 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
version: '3'
services:
redis:
image: redis:3.2-alpine
postgres:
image: mdillon/postgis:9.6-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: .
args:
exclude_sidekiq_ent: "${EXCLUDE_SIDEKIQ_ENTERPRISE:-false}"
sidekiq_license: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
image: "vets-api:${DOCKER_IMAGE:-latest}"
volumes:
- .:/src/vets-api:cached
- "../vets-api-mockdata:/cache"
- bundle:/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": "/src/vets-api/config/certs/vetsgov-localhost.crt"
"Settings.saml.key_path": "/src/vets-api/config/certs/vetsgov-localhost.key"
"Settings.redis.host": "redis"
"Settings.redis.port": "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:
bundle: