forked from Vizzuality/marxan-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test-unit.yml
39 lines (38 loc) · 1001 Bytes
/
docker-compose-test-unit.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
# 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"
container_name: marxan-test-unit-api
command: test-unit
user: "5000:5000"
volumes:
- ./api/apps:/opt/marxan-api/apps
- ./api/libs:/opt/marxan-api/libs
environment:
- NODE_PATH=src
- NODE_ENV=test
- NODE_CONFIG_DIR=apps/api/config
geoprocessing:
build:
context: ./api
dockerfile: geo.Dockerfile
args:
UID: 5000
GID: 5000
container_name: marxan-test-unit-geoprocessing
command: test-unit
user: "5000:5000"
volumes:
- ./api/apps:/opt/marxan-geoprocessing/apps
- ./api/libs:/opt/marxan-geoprocessing/libs
environment:
- NODE_PATH=src
- NODE_ENV=test
- NODE_CONFIG_DIR=apps/geoprocessing/config