diff --git a/docker-compose.yml b/docker-compose.yml index d73967f..15928dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,13 @@ -services: +version: '3.8' +services: postgres: image: postgres:17 container_name: postgres networks: - - pacs + pacs: + aliases: + - postgres environment: - PGPASSWORD=${PGPASSWORD} - POSTGRES_USER=${POSTGRES_USER} @@ -15,9 +18,10 @@ services: volumes: - ${POSTGRES_DATA_MNT}:${PGDATA} healthcheck: - test: [ "CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}" ] + test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"] retries: 3 timeout: 5s + restart: unless-stopped pgadmin: container_name: pgadmin @@ -29,9 +33,13 @@ services: - PGADMIN_CONFIG_SERVER_MODE=${PGADMIN_SERVER} - PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=${PGADMIN_MASTER_PASS} ports: - - "5050:5050" + - 5050:5050 depends_on: - postgres + networks: + pacs: + aliases: + - pgadmin orthanc: container_name: orthanc @@ -50,9 +58,11 @@ services: DICOM_WEB_PLUGIN_ENABLED: "true" OHIF_PLUGIN_ENABLED: "true" VOLVIEW_PLUGIN_ENABLED: "true" - restart: always + restart: unless-stopped networks: - - pacs + pacs: + aliases: + - orthanc depends_on: - postgres @@ -62,22 +72,26 @@ services: ports: - 3000:80 environment: - - APP_CONFIG:/usr/share/nginx/html/app-config.js + - APP_CONFIG=/usr/share/nginx/html/app-config.js volumes: - ${NGINX_DEFAULT_CONF}:/etc/nginx/conf.d/default.conf:ro - ${VIEWER_CONFIG}:/usr/share/nginx/html/app-config.js:ro - ./logo.png:/usr/share/nginx/html/logo.png:ro - restart: always + restart: unless-stopped networks: - - pacs + pacs: + aliases: + - ohif meddream: image: meddream/dicom-viewer:8.5.0 - restart: always + restart: unless-stopped ports: - "80:8080" networks: - - pacs + pacs: + aliases: + - meddream volumes: - ./config/meddream/application.properties:/opt/meddream/application.properties:ro #- ./config/meddream/license:/opt/meddream/license:ro @@ -85,4 +99,4 @@ services: networks: pacs: - external: true + external: true \ No newline at end of file