mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 01:31:25 -08:00
* initial docker * adds concurrency to be able to run yarn install * adds 0.0.0.0 to allow docker access * adds web service * adds env variables * updates root path * adds volumes * adds docker to readme * adds score server client docker * docker updates after convo * speeds up build and removes env vars * adds client as volume * updates to docker setup * checkpoint * updates the docker file * adds .env.* files * replaces serve with http-server for cors Co-authored-by: Jorge Escobar <jorge.e.escobar@omb.eop.gov>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
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:
|
|
DATA_SOURCE: local
|
|
volumes:
|
|
- ./client/src:/client/src
|
|
ports:
|
|
- 8000:6000
|
|
depends_on:
|
|
- "j40_score_server"
|