-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
73 lines (53 loc) · 1.61 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "2.1"
services:
# ---------------------------------
# Database
# ---------------------------------
db-test:
extends:
file: ./docker-compose-base.yml
service: postgres-base
# ---------------------------------
# Gather
# ---------------------------------
gather-test:
extends:
file: ./docker-compose-base.yml
service: gather-base
environment:
TESTING: "true"
# disable profiling
PROFILING_ENABLED: null
# set to 1 to disable parallel execution
TEST_PARALLEL: null
DJANGO_SECRET_KEY: django-secret-key-in-test-mode
ADMIN_USERNAME: testing
ADMIN_PASSWORD: this-is-really-secret
EXTERNAL_APPS: aether-kernel,aether-odk,aether-couchdb-sync
AETHER_KERNEL_TOKEN: kernel-test-token
AETHER_KERNEL_URL: http://kernel-test
AETHER_ODK_TOKEN: odk-test-token
AETHER_ODK_URL: http://odk-test
AETHER_COUCHDB_SYNC_TOKEN: couchdb-sync-test-token
AETHER_COUCHDB_SYNC_URL: http://couchdb-sync-test
ES_CONSUMER_URL: http://es-consumer-url
DB_NAME: gather-test
PGHOST: db-test
PGPASSWORD: this-is-really-really-secret.trust-me!
EXPORT_MAX_ROWS_SIZE: 1000
WEB_SERVER_PORT: 9105
volumes:
# volumes in tests
- ./tmp/test/gather/static:/var/www/static
depends_on:
db-test:
condition: service_healthy
command: test
# ---------------------------------
# Gather Assets
# ---------------------------------
gather-assets-test:
extends:
file: docker-compose-base.yml
service: gather-assets-base
command: test