-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (77 loc) · 2.23 KB
/
docker-compose.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
services:
develop:
build: .
ports:
- "3000:3000"
container_name: fw-exports-develop
environment:
NODE_ENV: dev
SUPPRESS_NO_CONFIG_WARNING: "true"
LOGGER_LEVEL: debug
PORT: 3000
AUTH_URL: https://staging-api.resourcewatch.org
CORE_API_URL: https://staging-fw-api.globalforestwatch.org/v3/gfw
ALERTS_API_URL: "https://staging-data-api.globalforestwatch.org"
GEOSTORE_API_URL: https://staging-api.resourcewatch.org/v1
GFW_DATA_API_KEY: ${gfw_data_api_key}
S3_ACCESS_KEY_ID: ${myS3Key}
S3_SECRET_ACCESS_KEY: ${myS3Secret}
MONGODB_HOST: mongo
MONGODB_PORT: 27017
DB_SECRET: '{ "username": "admin", "password": "password" }'
DB_DATABASE: fw_exports_db
SPARKPOST_API_KEY: ${sparkpost_api_key}
depends_on:
- mongo
volumes:
- ./app:/opt/fw-exports/app
- ./config:/opt/fw-exports/config
- ./nodemon.json:/opt/fw-exports/nodemon.json
command: yarn dev
networks:
- gfw-exports-network
test:
build: .
container_name: fw-exports-test
environment:
AREAS_API_URL: http://127.0.0.1:9000
MONGODB_HOST: mongo
MONGODB_PORT: 27017
DB_SECRET: '{ "username": "admin", "password": "password" }'
DB_DATABASE: fw_exports_db
volumes:
- ./app:/opt/fw-exports/app
- ./config:/opt/fw-exports/config
- ./nodemon.json:/opt/fw-exports/nodemon.json
- ./jest.config.js:/opt/fw-exports/jest.config.js
command: yarn test
depends_on:
- mongo
mongo:
image: mongo:3.6
container_name: fw-exports-mongo-develop
ports:
- "27026:27017"
environment:
MONGO_INITDB_DATABASE: fw_exports_db
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_ROOT_USERNAME: admin
volumes:
- ./data/mongo/001_users.js:/docker-entrypoint-initdb.d/001_users.js:ro
- fw-exports-mongodb-data:/data/db
restart: always
networks:
- gfw-exports-network
docs:
build: .
ports:
- "30000:30000"
container_name: fw-exports-docs
volumes:
- ./docs:/opt/fw-exports/docs
command: yarn run docs -l 30000
volumes:
fw-exports-mongodb-data:
networks:
gfw-exports-network:
name: gfw-exports-network