forked from department-of-veterans-affairs/vets-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 2.15 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
51
52
53
54
55
56
57
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"
# dispatcher-port 26162 for debugger, for example:
# rdebug-ide -d --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- /usr/local/bundle/bin/rails s -b 0.0.0.0 -p 3000 -e development
- "26162:26162"
# Main debugger handshake port
- "1234:1234"
# Ports 58430-58450 will be opened by the debugging gems. See:
# https://github.com/ruby-debug/ruby-debug-ide/issues/107
- "58430-58450:58430-58450"
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"
"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: