forked from Vizzuality/marxan-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test-e2e.yml
99 lines (94 loc) · 2.98 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
# GH Actions runners on Ubuntu 18.04 require an older (<= 3.6) Compose file version
version: "3.6"
services:
api:
build:
context: ./api
dockerfile: api.Dockerfile
args:
UID: 5000
GID: 5000
UPLOADS_TEMP_DIR: "/tmp/storage"
ports:
- "${API_SERVICE_PORT}:3000"
container_name: marxan-test-e2e-api
command: develop
user: "5000:5000"
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_URL=postgres://${API_POSTGRES_USER}:${API_POSTGRES_PASSWORD}@test-e2e-postgresql-api:5432/${API_POSTGRES_DB}
- GEO_POSTGRES_URL=postgres://${GEO_POSTGRES_USER}:${GEO_POSTGRES_PASSWORD}@test-e2e-postgresql-geo-api: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
args:
UID: 5000
GID: 5000
ports:
- "${GEOPROCESSING_SERVICE_PORT}:3000"
container_name: marxan-test-e2e-geoprocessing
command: develop
user: "5000:5000"
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_URL=postgres://${API_POSTGRES_USER}:${API_POSTGRES_PASSWORD}@test-e2e-postgresql-api:5432/${API_POSTGRES_DB}
- GEO_POSTGRES_URL=postgres://${GEO_POSTGRES_USER}:${GEO_POSTGRES_PASSWORD}@test-e2e-postgresql-geo-api: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: Dockerfile
container_name: marxan-test-e2e-postgresql-api
volumes:
- "./api/test/fixtures:/opt"
ports:
- "${POSTGRES_API_SERVICE_PORT}:5432"
environment:
- POSTGRES_PASSWORD=${API_POSTGRES_PASSWORD}
- POSTGRES_USER=${API_POSTGRES_USER}
restart: on-failure
test-e2e-postgresql-geo-api:
build:
context: ./postgresql
dockerfile: Dockerfile
container_name: marxan-test-e2e-postgresql-geo-api
ports:
- "${POSTGRES_GEO_SERVICE_PORT}:5432"
environment:
- POSTGRES_PASSWORD=${GEO_POSTGRES_PASSWORD}
- POSTGRES_USER=${GEO_POSTGRES_USER}
restart: on-failure
test-e2e-redis:
build:
context: ./redis
dockerfile: Dockerfile
container_name: marxan-test-e2e-redis
command: [ "redis-server" ]
ports:
- "${REDIS_API_SERVICE_PORT}:6379"
restart: on-failure
volumes:
marxan-cloud-backend-e2e-temp-storage: