-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
43 lines (40 loc) · 1.01 KB
/
docker-compose.test.yml
File metadata and controls
43 lines (40 loc) · 1.01 KB
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
---
version: '3'
services:
test: &test
build:
context: .
args:
RAILS_ENV: "test"
BUNDLE_GEMS__CONTRIBSYS__COM: ${BUNDLE_GEMS__CONTRIBSYS__COM}
environment:
RAILS_ENV: "test"
DATABASE_URL: "postgres://postgres:password@db-test:5432/DataSubmissionServiceApi_test?template=template0&pool=5&encoding=unicode"
AWS_S3_REGION: 'eu-west-2'
env_file:
- docker-compose.env
volumes:
- .:/srv/dss-api:cached
- node_modules:/srv/dss-api/node_modules:cached
depends_on:
- db-test
command: ["bundle", "exec", "./bin/dsetup && spring server"]
restart: on-failure
networks:
- tests
container_name: data-submission-service-api_test
db-test:
image: postgres
volumes:
- test_data:/var/lib/postgresql
networks:
- tests
restart: on-failure
container_name: data-submission-service-api_db-test
environment:
POSTGRES_PASSWORD: "password"
networks:
tests:
volumes:
test_data: {}
node_modules: