-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
44 lines (44 loc) · 1.5 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
# Compose stack to run gi-bill-data-service
version: '3.4'
services:
postgres:
image: "postgres:11.5"
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
volumes:
- "./data:/var/lib/postgresql/data"
command: "postgres -c 'bytea_output=escape'"
gibct:
build:
context: .
target: development
image: "gibct:${DOCKER_IMAGE:-latest}"
volumes:
- ".:/srv/gi-bill-data-service/src/:cached"
- dev_bundle:/usr/local/bundle
ports:
- 3000:3000
environment:
DATABASE_URL: "postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DATABASE:-vets_api_development}?pool=4"
POSTGRES_PORT: "${POSTGRES_PORT:-5432}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
SECRET_KEY_BASE: 0ae77385a98d4d28886d792832fbbe036152efb4a112fae2d06261850a5b6728
LINK_HOST: https://www.example.com
GIBCT_URL: https://www.example.com
SANDBOX_URL: https://www.example.com
ADMIN_EMAIL: '[email protected]'
ADMIN_PW: 'something...'
GOVDELIVERY_URL: 'stage-tms.govdelivery.com'
GOVDELIVERY_TOKEN: 'abc123'
GOVDELIVERY_STAGING_SERVICE: 'True'
DEPLOYMENT_ENV: 'vagov-dev'
CI: 'true'
depends_on:
- postgres
links:
- postgres
command: bash --login -c "bundle exec rails s"
volumes:
dev_bundle: