-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.override.yml.example
More file actions
57 lines (49 loc) · 1.33 KB
/
docker-compose.override.yml.example
File metadata and controls
57 lines (49 loc) · 1.33 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
# Docker Compose Override for Local Development
# Copy this to docker-compose.override.yml and customize
version: '3.8'
services:
app:
# Mount additional volumes for development
volumes:
- ~/.cms-nbi-client:/home/appuser/.cms-nbi-client
- ./scripts:/app/scripts
# Override environment for local testing
environment:
- LOG_LEVEL=DEBUG
- CMS_CONNECTION__HOST=mock-cms
- CMS_CONNECTION__PROTOCOL=http
- CMS_CONNECTION__VERIFY_SSL=false
# Keep container running for development
command: tail -f /dev/null
# Expose additional ports if needed
ports:
- "8888:8888" # For Jupyter notebooks
# Disable services not needed locally
prometheus:
profiles:
- monitoring
grafana:
profiles:
- monitoring
# Add development tools
jupyter:
build:
context: .
dockerfile: Dockerfile.dev
image: cms-nbi-client:jupyter
container_name: cms-nbi-jupyter
ports:
- "8888:8888"
volumes:
- ./src:/app/src
- ./Examples:/app/Examples
- ./notebooks:/app/notebooks
environment:
- PYTHONPATH=/app/src
command: >
sh -c "
pip install jupyter notebook ipywidgets &&
jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser --allow-root
"
networks:
- cms-network