Skip to content

Update docker-compose.yml to change obsolete code #20 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
27 changes: 15 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
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 # Updated network name
ports:
- "5000:5000"
depends_on:
- dicomhawk

dicomhawk:
condition: service_healthy # Ensures logserver waits for dicomhawk to be ready

dicomhawk:
environment:
- ENABLE_LOGGING=true
Expand All @@ -23,16 +21,21 @@ services:
ports:
- "11112:11112"
networks:
host:
ipv4_address: 172.29.0.3
- custom_network # Updated network name
healthcheck: # New health check added
test: ["CMD", "curl", "-f", "http://localhost:11112/health"]
interval: 10s
timeout: 5s
retries: 3

volumes:
shared_data:
driver: local



networks:
host:
custom_network: # Renamed from 'host' to 'custom_network'
driver: bridge # Use bridge instead of host mode
ipam:
config:
- subnet: 172.29.0.0/16
gateway: 172.29.0.1
gateway: 172.29.0.1