-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
43 lines (43 loc) · 1.13 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
#
# Development docker-compose file, supporting hot-reloading
# for both frontend and backend code.
#
# The web app will be accessible at http://localhost:3000 .
#
# If the python or react packages have changed, or if you get errors
# about missing python or react packages, rebuild the containers
# with `docker-compose build`.
#
version: "3.7"
services:
flask-dev:
container_name: metrics-flask-dev
build:
dockerfile: Dockerfile
target: flask-dev
context: .
ports:
- "5000:5000"
volumes:
- ./backend:/app/backend
environment:
FLASK_DEBUG: 1
OPENTRANSIT_S3_BUCKET: opentransit-pdx
OPENTRANSIT_AGENCY_IDS: trimet
react-dev:
container_name: metrics-react-dev
image: opentransit-metrics-react-dev:latest
build:
context: .
dockerfile: Dockerfile
target: react-dev
volumes:
- ./frontend/build:/app/frontend/build
- ./frontend/public:/app/frontend/public
- ./frontend/src:/app/frontend/src
ports:
- '3000:3000'
environment:
NODE_ENV: development
REACT_APP_METRICS_BASE_URL: http://localhost:5000
tty: true