-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.test.yml
55 lines (50 loc) · 1.25 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
version: '3.7'
services:
couch:
image: couchdb:2.3.1
environment:
COUCHDB_USER: cht
COUCHDB_PASSWORD: cht-password
networks:
- cht-net
postgres:
image: medicmobile/cht-postgres:release-postgres13-rc.1
environment:
POSTGRES_DB: cht
POSTGRES_USER: cht
POSTGRES_PASSWORD: cht_password
COUCH2PG_USER: cht_couch2pg
COUCH2PG_USER_PASSWORD: couch2pg_password
DB_OWNER_GROUP: cht_analytics
volumes:
- cht-postgres-data:/var/lib/postgresql/data
networks:
- cht-net
ports:
- ${PG_PORT:-5432}:5432
cht-couch2pg:
build:
context: .
target: test-couch2pg
volumes:
- ./libs:/usr/app/libs
- ./tests:/usr/app/tests
environment:
COUCHDB_URL: ${COUCHDB_URL:-"http://cht:cht-password@couch:5984"}
TEST_PG_URL: postgres://cht:cht_password@postgres:5432
TEST_COUCH_URL: http://cht:cht-password@couch:5984
POSTGRES_USER_NAME: cht
POSTGRES_PASSWORD: cht_password
POSTGRES_SERVER_NAME: ${POSTGRES_SERVER_NAME:-postgres}
POSTGRES_DB_NAME: cht
networks:
- cht-net
depends_on:
- postgres
- couch
networks:
cht-net:
name: cht-net
volumes:
cht-postgres-data:
name: cht-postgres-data