-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
35 lines (33 loc) · 960 Bytes
/
docker-compose.test.yml
File metadata and controls
35 lines (33 loc) · 960 Bytes
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
version: "3.7"
services:
test:
build:
context: .
cache_from:
- dfedigital/teacher-payments-service:base-${BRANCH:-master}
- dfedigital/teacher-payments-service:dependencies-${BRANCH:-master}
- dfedigital/teacher-payments-service:test-${BRANCH:-master}
target: test
image: dfedigital/teacher-payments-service:test-${BRANCH:-local}
entrypoint: bundle exec rake db:prepare default
depends_on:
- db
environment:
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_USERNAME: postgres
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_PASSWORD: password
DFE_TEACHERS_PAYMENT_SERVICE_DATABASE_HOST: db
RUN_FLAKY_SPECS: false
RUN_JS_SPECS: false
RUN_SLOW_SPECS: false
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: