# SSPR Details

The service is [PWM ](https://github.com/pwm-project/pwm "PWM")as mentioned in the how-to section. There is a lot of post-docker configuration that needs to be done, but this is the stuff you need to get that going. Getting the whole thing in docker with a database was the largest challenge, and that is in the docker-compose file. There is a lot of time behind the handful of config lines down there. I recently tried to update the docker container for the database and it blew up the whole damn thing. I had to both export the old image while it was still on the server, as well as tag that image on my server and explicitly state it in the docker-compose file. I named it **23c** because I found that version number in the json data for the image.

<details id="bkmrk-docker-compose.yaml-"><summary>docker-compose.yaml</summary>

```yaml
services:

  pwm:
    container_name: pwm
    image: pwm/pwm-webapp
    restart: always
    network_mode: bridge
    ports:
      - 8443:8443
    # pwm requires a named volume to populate with data
    volumes:
      - pwm-config:/config

  pwm-db:
    container_name: pwm-db
    image: gvenzl/oracle-free:23c
    restart: always
    network_mode: bridge
    volumes:
      - ./pwm-db-data:/opt/oracle/oradata
    ports:
      - 1521:1521
    environment:
      ORACLE_PASSWORD: lolwtfbbqlolwtfbbq
      APP_USER: PWM
      APP_USER_PASSWORD: lolwtfbbqlolwtfbbq

volumes:
  pwm-config:
    driver: local
    driver_opts:
      type: none
      device: ./pwm-config
      o: bind
```

</details><details id="bkmrk-oracle-container-jso"><summary>oracle container json</summary>

```json
[
    {
        "Id": "sha256:b634e377c516c2bf526437d376d917f5ddeb8360947bd37318f4d7e7e0de06e8",
        "RepoTags": [],
        "RepoDigests": [
            "gvenzl/oracle-free@sha256:621a4ab6515b4cec30468393ab4ace425486777ebe9f4883246169e2e5f56557"
        ],
        "Parent": "",
        "Comment": "FROM 285af389ed48",
        "Created": "2023-10-30T02:50:36.907857088Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "oracle",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/oracle/product/23c/dbhomeFree/bin:/opt/oracle",
                "ORACLE_BASE=/opt/oracle",
                "ORACLE_BASE_CONFIG=/opt/oracle/product/23c/dbhomeFree",
                "ORACLE_BASE_HOME=/opt/oracle/product/23c/dbhomeFree",
                "ORACLE_HOME=/opt/oracle/product/23c/dbhomeFree",
                "ORACLE_SID=FREE",
                "NLS_LANG=.AL32UTF8"
            ],
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "/opt/oracle",
            "Entrypoint": [
                "container-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "io.buildah.version": "1.29.1",
                "org.opencontainers.image.source": "https://github.com/gvenzl/oci-oracle-free"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 3103846098,
        "VirtualSize": 3103846098,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/f76202458a210b6891d45f340df915278e58108fdb07bc3e1697507b9f9dd3b9/diff:/var/lib/docker/overlay2/19d83c639fd2328f8653d527dc7e443fe48f6d63f4f6fe7cd43ba7c3787c11df/diff:/var/lib/docker/overlay2/1756df4c35fe5f0abeeca5246672c16fa8a86529bc1c3172bdac1fce58004edc/diff:/var/lib/docker/overlay2/20f764a79ad01e5e75ddf3eeddd63a4268e62a1ceda7b5f689fc5edc1933b2a3/diff:/var/lib/docker/overlay2/fd29ec1f40021eb654a22818deba01ae3151fa35ff02d19216e759dd759070c5/diff",
                "MergedDir": "/var/lib/docker/overlay2/5de124aaa618ee7b646a4daa3e2f8b62a775053b92d53944b4d43da1204eac50/merged",
                "UpperDir": "/var/lib/docker/overlay2/5de124aaa618ee7b646a4daa3e2f8b62a775053b92d53944b4d43da1204eac50/diff",
                "WorkDir": "/var/lib/docker/overlay2/5de124aaa618ee7b646a4daa3e2f8b62a775053b92d53944b4d43da1204eac50/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:cbe54277ff34e4276b7315f22a846ebba2268aca6622dbaf7492c095b2e0cec9",
                "sha256:c502a8546e124aaabace3b034a3b10504c6595ee090e4295af0035bb380edc60",
                "sha256:b345dcbf0fc88139f980389fbdf8d7addc8d8e390cbe51154cf18d7ae31eb515",
                "sha256:ef05e906bc1802312d479e464dbae41800f529e8b7c3332560edcc6720bd9c05",
                "sha256:8a960459998f3304d10473916d3b4c03b65df2262cb03f85d980dfd6de8cbbd0",
                "sha256:66aca614e5766706090bc89081c3ac0f7ad413fb4e1bbfe512d17981a6b6cc4c"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

```

</details>