-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose-test.yaml
59 lines (54 loc) · 1.46 KB
/
docker-compose-test.yaml
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
version: '3'
services:
testdb:
image: camptocamp/thinkhazard-testdb
environment:
POSTGRES_PASSWORD: thinkhazard
POSTGRES_DB: thinkhazard_test
POSTGRES_USER: thinkhazard
test:
image: camptocamp/thinkhazard-builder
depends_on:
- testdb
- testredis
- testminio-client
volumes:
- '${PWD}/thinkhazard:/app/thinkhazard'
- '${PWD}/tests:/app/tests'
environment: &env
- INI_FILE
- PGHOST=testdb
- PGPORT=5432
- PGUSER_PUBLIC=thinkhazard
- PGPASSWORD_PUBLIC=thinkhazard
- PGDATABASE_PUBLIC=thinkhazard_test
- PGUSER_ADMIN=thinkhazard
- PGPASSWORD_ADMIN=thinkhazard
- PGDATABASE_ADMIN=thinkhazard_test
- AWS_ENDPOINT_URL=http://testminio:9000/
- AWS_ACCESS_KEY_ID=minioadmin
- AWS_SECRET_ACCESS_KEY=minioadmin
- AWS_BUCKET_NAME=thinkhazard
- GEONODE_API_KEY
- ANALYTICS
- BROKER_URL=redis://testredis:6379/0
- HTPASSWORDS
testminio:
image: minio/minio
command: 'minio server /data'
testredis:
image: redis
testminio-client:
image: minio/mc
depends_on:
- testminio
volumes:
- ./docker/minio-client/docker-entrypoint:/docker-entrypoint
environment:
- AWS_HOST=testminio
- AWS_PORT=9000
- AWS_ACCESS_KEY_ID=minioadmin
- AWS_SECRET_ACCESS_KEY=minioadmin
- AWS_BUCKET_NAME=thinkhazard
entrypoint: /docker-entrypoint
command: ["exit", "0"]