forked from usds/justice40-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 1.45 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
version: "3.4"
services:
# The j40_data_pipeline service runs the ETL pipeline to create the score
score:
image: j40_data_pipeline
container_name: j40_data_pipeline_1
build: data/data-pipeline
ports:
- 8888:8888
volumes:
- ./data/data-pipeline:/data-pipeline
stdin_open: true
tty: true
environment:
ENV_FOR_DYNACONF: development
PYTHONUNBUFFERED: 1
# The score_server serves the data-pipeline volume as a URL
j40_score_server:
image: j40_score_server
container_name: j40_score_server_1
build: data/data-serve/.
volumes:
- ./data/data-pipeline/data_pipeline/data/score:/data/data-pipeline/data_pipeline/data/score
ports:
- 5000:8080
#The j40_website service runs the web app / map / site
j40_website:
image: j40_website
container_name: j40_website_1
build: ./client
environment:
# See the client readme for more info on environment variables:
# https://github.com/usds/justice40-tool/blob/main/client/README.md
DATA_SOURCE: local
# If you want the map to render a MapBox base map (as opposed to the
# open source one from CartoDB), please create your own API TOKEN from
# your MapBox account and add the token here:
MAPBOX_STYLES_READ_TOKEN: ""
volumes:
- ./client/src:/client/src
ports:
- 8000:6000
depends_on:
- "j40_score_server"