-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.21 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
44
45
46
47
48
49
50
51
52
53
x-condition-healthy: &healthy
condition: service_healthy
x-healthcheck-defaults: &healthcheck-defaults
interval: 5s
timeout: 10s
start_period: 10s
retries: 5
services:
mariadb:
build: docker/db
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
ports:
- 3306:3306
healthcheck:
<<: *healthcheck-defaults
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
mariadb_ht:
image: ghcr.io/hathitrust/db-image:latest
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
ports:
- 3307:3306
healthcheck:
<<: *healthcheck-defaults
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
test:
build: .
volumes:
- .:/htapps/babel/crms
environment:
- SDRROOT=/htapps/babel
- CRMS_DB_HOST=mariadb
- CRMS_HT_DB_HOST=mariadb_ht
# pass through info needed by coveralls uploader
- GITHUB_TOKEN
- GITHUB_RUN_ID
- GITHUB_EVENT_TOKEN
- GITHUB_EVENT_PATH
- GITHUB_SHA
- GITHUB_REF
- GITHUB_ACTIONS
depends_on:
mariadb: *healthy
mariadb_ht: *healthy
command: scripts/test.sh