Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 1 addition & 1 deletion dicom_server/dicomhawk.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def start_dicom_server():
if is_port_in_use(dicom_port):
print(f"Port {dicom_port} is in use. Please free up the port and try again.")
return
ae.start_server(('172.29.0.3', dicom_port), evt_handlers=handlers)
ae.start_server(('0.0.0.0', dicom_port), evt_handlers=handlers)



Expand Down
28 changes: 17 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
version: '3.8' # Use the latest version of Compose


services:
logserver:
build: ./flask_logging_server/.
volumes:
- shared_data:/app
networks:
host:
ipv4_address: 172.29.0.2
custom_network:
ipv4_address: 172.28.0.2
ports:
- "5000:5000"
depends_on:
- dicomhawk

dicomhawk:
environment:
- ENABLE_LOGGING=true
- Docker_ENV=true
- ENABLE_LOGGING= ${ENABLE_LOGGING}
- Docker_ENV= ${Docker_ENV}
build: ./dicom_server/.
volumes:
- shared_data:/app
ports:
- "11112:11112"
networks:
host:
ipv4_address: 172.29.0.3
custom_network:
ipv4_address: 172.28.0.3
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11112/health"]
interval: 30s
retries: 3
start_period: 10s
timeout: 5s

volumes:
shared_data:
driver: local


networks:
host:
custom_network:
ipam:
config:
- subnet: 172.29.0.0/16
gateway: 172.29.0.1
- subnet: 172.28.0.0/16
gateway: 172.28.0.1