-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
44 lines (41 loc) · 1.06 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
version: "3.7"
services:
dependencies:
build:
context: .
cache_from:
- dfedigital/teacher-payments-service:cache-test-dependencies
target: dependencies
args:
RAILS_ENV: test
image: local/dfe-teachers-payment-service:test-dependencies
test:
build:
context: .
cache_from:
- local/dfe-teachers-payment-service:test-dependencies
- dfedigital/teacher-payments-service:cache-test
target: test
args:
RAILS_ENV: test
image: local/dfe-teachers-payment-service:test
entrypoint: bundle exec rake db:prepare default
depends_on:
- dependencies
- db
environment:
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_USERNAME: postgres
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_PASSWORD: password
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_HOST: db
env_file:
- .env.test
tty: true
stdin_open: true
db:
image: postgres
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
volumes:
db-data: