-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.test.yml
53 lines (49 loc) · 1.22 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
45
46
47
48
49
50
51
52
53
services:
test_breedbase:
build:
context: .
cache_from:
- breedbase/breedbase:v0.54
environment:
HOME: /root
MODE: 'TESTING'
PGPASSWORD: postgres
SGN_TEST_SERVER: http://test_breedbase:3010
SGN_REMOTE_SERVER_ADDR: selenium
depends_on:
breedbase_db:
condition: service_healthy
selenium:
condition: service_healthy
volumes:
- ./cxgn:/home/production/cxgn
# repos/sgn/sgn_test.conf assumes /home/vagrant
- ./.git:/home/production/.git
command: ["t/unit", "t/unit_fixture", "t/unit_mech"]
networks:
- test-breedbase
selenium:
image: selenium/standalone-firefox:97.0
shm_size: '2gb'
healthcheck:
test: "curl --silent --head http://localhost:4444 || exit 1"
networks:
- test-breedbase
volumes:
- type: bind
source: ./cxgn/sgn/t/data
target: /home/production/cxgn/sgn/t/data
ports:
- 5900:5900
- 4444:4444
breedbase_db:
image: postgres:12.7
environment:
POSTGRES_PASSWORD: postgres
healthcheck:
test: "pg_isready -U postgres || exit 1"
interval: 10s
networks:
- test-breedbase
networks:
test-breedbase: