# Menjalankan proxy dengan Docker

## Build images
```sh
cd /path/to/cloned/dicomweb-proxy
docker build -t dicomweb-proxy:2.0 -f dicomweb.Dockerfile .
```

## Run Images
Cek `docker-compose.yml` lalu pastikan **image** sesuai dengan nama_image hasil build.

```Dockerfile
services:
  dicomweb-proxy:
    image: dicomweb-proxy:2.0
```

Lalu jalankan dengan:
```sh
docker-compose up -d
```

Jika berhenti, **jangan lupa**:
```sh
docker-compose down
```

## Memakai Image di Server PACS
1. Pull Images
```sh
docker pull devone.aplikasi.web.id/one/dicomweb-proxy:2.0
```

2. Unduh template `docker-compose.yml` dan `/config/default.js` disini: 
   [GDrive dicomweb-proxy starter template](https://drive.google.com/file/d/1pteS1l9vz50HhPpYfoE6hZkMofyE_WDD/view?usp=drive_link)
 
3. Jalankan dengan:
```sh
docker-compose up -d
```

Jika berhenti, **jangan lupa**:
```sh
docker-compose down
```