-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.build.yml
More file actions
39 lines (36 loc) · 936 Bytes
/
docker-compose.build.yml
File metadata and controls
39 lines (36 loc) · 936 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
36
37
38
39
---
version: "3"
services:
test:
image: datasubmissionserviceapi:$COMMIT_HASH
environment:
RAILS_ENV: "test"
DATABASE_URL: "postgres://postgres:password@db-test:5432/DataSubmissionService_test?template=template0&pool=5&encoding=unicode"
API_ROOT: "https://ccs.api/"
env_file:
- docker-compose.env
volumes:
- .:/srv/dss:cached
- node_modules:/srv/dss/node_modules
depends_on:
- db-test
command: ["bundle", "exec", "./bin/dsetup && spring server"]
restart: on-failure
networks:
- tests
container_name: data-submission-service_test
db-test:
image: postgres
volumes:
- pg_test_data:/var/lib/postgresql/data/:cached
networks:
- tests
restart: on-failure
container_name: data-submission-service_db-test
environment:
POSTGRES_PASSWORD: "password"
networks:
tests:
volumes:
pg_test_data: {}
node_modules: