Docker
This manual describes the steps required to install Docker and Docker Compose on an Ubuntu distribution (20.04 LTS or higher). These steps are the first requirement to install the PACS inside a Docker container.
Prerequisites: It is recommended to run these commands as a user with superuser privileges (sudo) or from an account with administrative permissions.
Install Docker and Docker Compose
To install Docker and Docker Compose, follow the steps described in the official Docker documentation for Ubuntu:
https://docs.docker.com/engine/install/ubuntu/
Once installation is complete, verify that docker and docker compose are correctly installed by running:
docker --version
docker compose version
Install MongoDB
Follow the steps in the Ubuntu section.
Regardless of the deployment method, it is mandatory to use MongoDB version 7.0 or higher.
Create the docker-compose.yml file
Once Docker and Docker Compose are installed, create a file named docker-compose.yml, which defines the services required to run the PACS environment in containers.
- Create a directory for the project:
mkdir pacs && cd pacs
- Create an empty license file:
touch license.dat
It is important to create this file before bringing up the services with Docker. If the file does not exist, Docker will automatically create a folder named license.dat due to volume mounting, which will prevent the application from working. If you don't yet have a valid license, this empty file serves as the required "dummy" for deployment.
- Create the docker-compose.yml file:
nano docker-compose.yml
- Get the absolute path of the current directory. This path will be used to complete the volumes in
docker-compose.yml:
pwd
Copy the output and replace PATH in the next step.
- Write the configuration corresponding to the required services into the file.
services:
pacs:
image: public.ecr.aws/forzasoft/proteus:latest
container_name: pacs
restart: unless-stopped
environment:
NAME: pacs
LABEL: pacs
MONGODB_URL: <MONGODB_URL>
WEB_PUBLIC_URL: <URL>
ports:
- "8080:8080"
- "11112:11112"
volumes:
- <PATH>/logs:/usr/src/app/logs/
- <PATH>/storage:/usr/src/app/storage/
- <PATH>/tags_cache:/usr/src/app/tags_cache/
- <PATH>/zips_cache:/usr/src/app/zips_cache/
- <PATH>/images_cache:/usr/src/app/images_cache/
- <PATH>/license.dat:/usr/src/app/license.dat
healthcheck:
test: curl -s -f http://localhost:8080/healthz || exit 1
interval: 30s
timeout: 30s
retries: 3
start_period: 20s
Replace MONGODB_URL, URL and PATH with the actual values for your installation.
-
Save and close the file (Ctrl + O, Enter, then Ctrl + X if using nano).
-
Start the services in the background:
docker compose up -d