forked from erseco/alpine-moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
61 lines (57 loc) · 1.53 KB
/
docker-compose.test.yml
File metadata and controls
61 lines (57 loc) · 1.53 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
54
55
56
57
58
59
60
61
services:
app:
image: ${TEST_IMAGE_NAME:-jimsihk/alpine-moodle:local}
build:
context: .
args:
- ARG_MOODLE_PLUGIN_LIST=${ARG_MOODLE_PLUGIN_LIST}
- ARG_ALLOW_INCOMPATIBLE_PLUGIN=true
- ARG_ENABLE_GIT_CLONE=${ARG_ENABLE_GIT_CLONE:-true}
environment:
- SITE_URL=http://app:8080
- MOODLE_SITENAME=Dockerized_Moodle
- SESSION_CACHE_TYPE=redis
- SESSION_CACHE_HOST=redis
- SESSION_CACHE_PORT=6379
- AUTO_UPDATE_MOODLE=${AUTO_UPDATE_MOODLE:-false}
- UPDATE_MOODLE_CODE=${UPDATE_MOODLE_CODE:-false}
- DB_TYPE=pgsql
- DB_HOST=pgbouncer
- DB_PORT=5432
- DB_NAME=moodle
- DB_USER=moodledbuser
- DB_PASS=moodledbpass
- DB_DBHANDLEOPTIONS=true
- DB_FETCHBUFFERSIZE=0
- DB_DBPERSIST=true
depends_on:
- postgres
- redis
- pgbouncer
postgres:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=moodledbpass
- POSTGRES_USER=moodledbuser
- POSTGRES_DB=moodle
pgbouncer:
image: edoburu/pgbouncer:latest
environment:
- DB_USER=moodledbuser
- DB_PASSWORD=moodledbpass
- DB_HOST=postgres
- DB_NAME=moodle
- AUTH_TYPE=scram-sha-256
- POOL_MODE=session
- IGNORE_STARTUP_PARAMETERS=options,extra_float_digits
depends_on:
- postgres
redis:
image: redis/redis-stack-server
sut:
image: alpine:latest
depends_on:
- app
command: /tmp/run_tests.sh
volumes:
- "./run_tests.sh:/tmp/run_tests.sh:ro"