-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-test-e2e.yml
107 lines (102 loc) · 2.83 KB
/
docker-compose-test-e2e.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3.8"
services:
api:
build:
context: ./api
dockerfile: api.Dockerfile
ports:
- "3000:3000"
container_name: marxan-test-e2e-api
command: develop
volumes:
- ./api/apps:/opt/marxan-api/apps
- ./api/libs:/opt/marxan-api/libs
- marxan-cloud-backend-e2e-temp-storage:/tmp/storage
environment:
- NODE_PATH=src
- NODE_ENV=test
- API_POSTGRES_HOST=test-e2e-postgresql-api
- API_POSTGRES_USER
- API_POSTGRES_PASSWORD
- API_POSTGRES_PORT=5432
- API_POSTGRES_DB
- GEO_POSTGRES_HOST=test-e2e-postgresql-geo-api
- GEO_POSTGRES_USER
- GEO_POSTGRES_PASSWORD
- GEO_POSTGRES_PORT=5432
- GEO_POSTGRES_DB
- REDIS_HOST=test-e2e-redis
- NODE_CONFIG_DIR=apps/api/config
depends_on:
- test-e2e-postgresql-api
- test-e2e-postgresql-geo-api
- test-e2e-redis
geoprocessing:
build:
context: ./api
dockerfile: geo.Dockerfile
ports:
- "3001:3000"
container_name: marxan-test-e2e-geoprocessing
command: develop
volumes:
- ./api/apps:/opt/marxan-geoprocessing/apps
- ./api/libs:/opt/marxan-geoprocessing/libs
- marxan-cloud-backend-e2e-temp-storage:/tmp/storage
environment:
- NODE_PATH=src
- NODE_ENV=test
- API_POSTGRES_HOST=test-e2e-postgresql-api
- API_POSTGRES_USER
- API_POSTGRES_PASSWORD
- API_POSTGRES_PORT=5432
- API_POSTGRES_DB
- GEO_POSTGRES_HOST=test-e2e-postgresql-geo-api
- GEO_POSTGRES_USER
- GEO_POSTGRES_PASSWORD
- GEO_POSTGRES_PORT=5432
- GEO_POSTGRES_DB
- REDIS_HOST=test-e2e-redis
- NODE_CONFIG_DIR=apps/geoprocessing/config
depends_on:
- test-e2e-postgresql-geo-api
- test-e2e-postgresql-api
- test-e2e-redis
- api
test-e2e-postgresql-api:
build:
context: ./postgresql
dockerfile: apidb.Dockerfile
container_name: marxan-test-e2e-postgresql-api
volumes:
- "./api/test/fixtures:/opt"
ports:
- "3542:5432"
environment:
- POSTGRES_PASSWORD=marxan-api
- POSTGRES_USER=marxan-api
- POSTGRES_DB=marxan-api
restart: on-failure
test-e2e-postgresql-geo-api:
build:
context: ./postgresql
dockerfile: geodb.Dockerfile
container_name: marxan-test-e2e-postgresql-geo-api
ports:
- "3541:5432"
environment:
- POSTGRES_PASSWORD=marxan-geo-api
- POSTGRES_USER=marxan-geo-api
- POSTGRES_DB=marxan-geo-api
restart: on-failure
test-e2e-redis:
build:
context: ./redis
dockerfile: Dockerfile
container_name: marxan-test-e2e-redis
command: [ "redis-server" ]
ports:
- "3050:6379"
restart: on-failure
volumes:
marxan-cloud-backend-e2e-temp-storage: