-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (24 loc) · 831 Bytes
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
services:
app:
build: .
ports:
- "8501:8501"
environment:
- ENV=production
# No volume mounts in the default (production) profile →
# the image runs exactly what was baked in during `docker build`.
# --------------------------------------------------------------------------
# Development override — adds live-reload mounts.
# Usage: docker compose --profile dev up
# --------------------------------------------------------------------------
app-dev:
build: .
profiles: ["dev"]
ports:
- "8501:8501"
volumes:
- ./src/heliotrace:/app/src/heliotrace # live-reload library code
- ./pages:/app/pages # live-reload pages
- ./app.py:/app/app.py # live-reload entry point
environment:
- ENV=development