forked from Vizzuality/Aqueduct-Water_Food_Security
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (44 loc) · 1.11 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
# This is for development (not deployment)
version: '2.1'
x-app: &app
image: aqueduct-water-food-security:0.10
stdin_open: true
tty: true
build:
context: .
dockerfile: docker/Dockerfile
args:
NODE_VERSION: '10.20.1'
environment: &env
EDITOR: vi
HISTFILE: /log/.bash_history
NODE_ENV: ${NODE_ENV:-development}
REACT_APP_WRI_API_URL: //api.resourcewatch.org/v1
API_URL: https://api.resourcewatch.org/v1
BASEMAP_TILE_URL: https://api.tiles.mapbox.com/v4/wri.c974eefc/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoid3JpIiwiYSI6IjU3NWNiNGI4Njc4ODk4MmIyODFkYmJmM2NhNDgxMWJjIn0.v1tciCeBElMdpnrikGDrPg
# USERNAME: aqueduct
# PASSWORD: password
env_file: &env_file
- .env
tmpfs:
- /tmp
volumes:
- .:/app:cached
- node_modules:/node_modules
services:
web:
<<: *app
# This might be helpful:
# docker-compose run web yarn build
# but I'm not sure how Pantheon works yet.
command: yarn start
expose:
- "3000"
ports:
- "3040:3000"
# environment:
# <<: *env
# env_file:
# <<: *env_file
volumes:
node_modules: