-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (54 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
60 lines (54 loc) · 1.26 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.8'
services:
# Development environment with Jupyter
jupyter:
build:
context: .
target: development
ports:
- "8888:8888"
volumes:
- .:/app
- jupyter-data:/home/jovyan/.jupyter
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=mars-terraforming
command: conda run -n reddust-reclaimer jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root
# Production application
app:
build:
context: .
target: production
volumes:
- ./results:/app/results
environment:
- PYTHONPATH=/app
command: conda run -n reddust-reclaimer python scripts/dock_example.py
# Testing environment
test:
build:
context: .
target: development
volumes:
- .:/app
command: conda run -n reddust-reclaimer pytest tests/ -v --cov=scripts
# Web interface (future enhancement)
web:
build:
context: .
target: development
ports:
- "8080:8080"
volumes:
- .:/app
environment:
- FLASK_ENV=development
- FLASK_APP=web/app.py
command: conda run -n reddust-reclaimer python -m flask run --host=0.0.0.0 --port=8080
profiles:
- web
volumes:
jupyter-data:
networks:
default:
name: reddust-network