-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathdocker-compose.test.mariadb.yml
More file actions
39 lines (37 loc) · 986 Bytes
/
Copy pathdocker-compose.test.mariadb.yml
File metadata and controls
39 lines (37 loc) · 986 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
---
services:
app:
build:
context: .
args:
# Set MOODLE_VERSION in the environment to test a specific git tag;
# defaults to main.
MOODLE_VERSION: ${MOODLE_VERSION:-main}
environment:
- SITE_URL=http://app:8080
- DB_TYPE=mariadb
- DB_HOST=mariadb
- DB_PORT=3306
- DB_NAME=moodle
- DB_USER=moodle
- DB_PASS=moodle
# Mounted so the moosh smoke test can run inside app (see docker-compose.test.yml).
volumes:
- "./run_tests.sh:/tmp/run_tests.sh:ro"
depends_on:
- mariadb
mariadb:
image: mariadb:lts
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=moodle
- MYSQL_DATABASE=moodle
- MYSQL_USER=moodle
- MYSQL_PASSWORD=moodle
sut:
image: alpine:latest
depends_on:
- app
command: /tmp/run_tests.sh
volumes:
- "./run_tests.sh:/tmp/run_tests.sh:ro"